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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

820 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