On 9/12/06, Bill Moseley <[EMAIL PROTECTED]> wrote:
> This seems very familiar, and I'm sure will be obvious,  but I'm
> trying to understand why adding a border is changing the size of a
> <div>.

Because, in the CSS box model, that is what it is supposed to do.
Also adding padding changes the size on screen of an element.

If you have a DIV that is 100px wide with a 2px border and 10px of
padding that div will be 100 +4 +20 = 124 px wide.  That's the way the
standard is written and browsers that comply with the standard do it
that way.

-- 
Ed Seedhouse
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to