|
Posted by dorayme on 12/03/06 03:14
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]
|