You are here: Re: Borders « HTML « IT news, forums, messages
Re: Borders

Posted by Nicholas on 12/03/06 03:20

Thanks


"dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
news:doraymeRidThis-B62B82.14144003122006@news-vip.optusnet.com.au...
> In article <tdadnSSUaJdKqu_YnZ2dnUVZ_qadnZ2d@comcast.com>,
> "Nicholas" <no-reply@email.com> wrote:
>
>> When adding a border to a div with CSS, where does it's pixels exist in
>> relation to the div's width and height? For instance, if I create a 300px
>> by
>> 300px div and add a 1px border to it, have I now created a 302px by 302px
>> div, or have I reduced my usable space within the div to 298px by 298px?
>>
>> Nicholas
>
> 'margin-left' + 'border-left-width' + 'padding-left' + 'width' +
> 'padding-right' + 'border-right-width' + 'margin-right' = width
> of containing block
>
> To see, make a test with huge borders, use a Strict 4.01 doctype.
>
> --
> dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация