Solved

Picture outside the box ?

Posted on 2013-02-01
2
281 Views
Last Modified: 2013-02-01
Hi!

My webtestpage is:
http://www.zoftzircus.no/MemberTest/index.php

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:

.art-hovedbilde
{
  width:690px;
   padding:0px;
   border:1px solid #8099b3;
   background-color:#ffffff;
}

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

Accepted Solution

by:
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>
0
 
LVL 2

Author Closing Comment

by:team2005
ID: 38843460
thanks
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

772 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