Page is a not externally linkable
- Browsers
-- Firefox Browser Usage and Support
---- padding IE vs Netscape vs Firefox


isitreal - 4:38 pm on Jun 12, 2004 (gmt 0)


Please give a code sample.

If you are making a table cell, the math goes like this:

border: padding left: width: padding right: border.

So if you have this:

td#leftNav {
border: 2px solid black;
padding: 10px;
width: 140px;
}
the table cell will be 164px wide in non quirks mode. See this recent thread [webmasterworld.com], message 33 on how to code for that problem to make the cell display the same in standard w3c box model mode and IE quirks mode.

Note what triggers IE quirks mode too, by the way, no doctype, incorrectly written doctype, and, most annoying, doctype not on the first line of the html page. In some cases on dynamically generated pages it can be very difficult to get the doctype on the first line.


Thread source:: http://www.webmasterworld.com/firefox_browser/422.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com