Mário Gamito wrote:
> Hi,
>
> I'm designining this site
> http://www.dte.ua.pt/~gamito/prototype.php
> to be 780px wide, as you can see in CSS's #mainbox.
>
> Now that i've added a black strip (an image) that is 780 pixels wide, i
> see that the site is wider than 780 pixels.
> I've taken a screenshot of the page, measured the grey lines, and came
> to the conclusion that the site is really exactly 800 pixels wide!
Mario
You must remember that if you add any padding it is added to the width
of the site so,
if you have a div set to 780px and you add padding:10px; the actual
width of this div is now 800px;
What you need to do is subtract the padding amount from the width:
#layer {
width:760px;
padding:10px
}
Now the DIV layer is 780px in width. HTH
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
emotionalize.conceptualize.visualize.realize
Landlines
Tel: +27125468436
US Tel: (440) 499-5484
Fax: +27125468436
Web
email:[EMAIL PROTECTED]
Global: www.volume4.com
Messenger
Yahoo!: v_olume4
AOL: v0lume4
MSN: [EMAIL PROTECTED]
We support OpenSource
Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/
The information transmitted is intended solely for the individual or entity to
which it is addressed and may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of or taking action in
reliance upon this information by persons or entities other than the intended
recipient is prohibited. If you have received this email in error, please
contact the sender and please delete all traces of this material from all
devices.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/