From what I understand, padding is inside of the box ( http://www.w3.org/TR/REC-CSS2/box.html )
I'm wondering why it's being added to the width of a block element then. In this case a ul..
http://astions.com/chapter2/
I spose I can make a wrapper for it but I shouldn't have to. Am I missing something here?
Padding added to 100% width
Moderator: General Moderators
I misunderstood the box model. I thought only margins were added to the width, except in IE.
After reading http://www.quirksmode.org/css/box.html I've got it straight. I'm just going to add a wrapper so I won't have to fix it later if I remove the first link.
@Oren, IE 6 is rendering it correctly, in the sense that the padding is being added to the width. Are you referring to an older version?
After reading http://www.quirksmode.org/css/box.html I've got it straight. I'm just going to add a wrapper so I won't have to fix it later if I remove the first link.
@Oren, IE 6 is rendering it correctly, in the sense that the padding is being added to the width. Are you referring to an older version?
Yes, this is right. IE6 in quirks mode also does that because of historical reasons.matthijs wrote:Yes, it's ie5 that has problems. Or IE6 when it's in quirks mode. That happens when you precede the doctype with the encoding declaration (maybe other situations as well, have to look that up). But normally ie6 is fine