Picture outside the box ?

Posted on 2013-02-01
Last Modified: 2013-02-01

My webtestpage is:

The problem is that my picture is outside the box:

   <div class="art-hovedbilde"><img alt="" src="./images/<?php echo $hovedbilde1;?>" /></div>

Open in new window

The CSS lock like:

   border:1px solid #8099b3;

How do i get the picture to fit inside the white frame ?
Question by:team2005
LVL 38

Accepted Solution

Tom Beck earned 500 total points
ID: 38843301
Just give the image a width of 675.

<div class="art-hovedbilde"><img width="675" alt="" src="./images/<?php echo $hovedbilde1;?>" /></div>

Author Closing Comment

ID: 38843460

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now