Hi Schalk,

Thank you for your answer.

I did what you've told, but the site's just "went down" 10 (or 20) px.
The width remains 800 :(

I think i have no left or right padding. Am i right ?

Warm Regards,
Mário Gamito

Schalk Neethling wrote:
> 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
> 

______________________________________________________________________
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/

Reply via email to