Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Picture outside the box ?

Posted on 2013-02-01
2
Medium Priority
?
291 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 2000 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

885 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