Re: Netscape padding vs. IE padding using CSS
by "Tim Rivera" <lists(at)timrivera.com>
|
Date: |
Sat, 19 Apr 2003 01:49:59 -0400 |
To: |
<hwg-techniques(at)mail.hwg.org> |
References: |
MIKETAYLOR01 |
|
todo: View
Thread,
Original
|
|
> I've noticed that Netscape seems to add spacing to the total width and
> height of a DIV if you use the padding attribute. Internet Explorer doesn't
> seem to do this.
Actually, IE6 *does* do this when in standards compliance mode. Have you never
heard of the faulty IE box model, hence the need for the "Tantek Box Model
Hack"?
http://www.tantek.com/CSS/Examples/boxmodelhack.html
IE6 renders that example page in standards compliance mode, therefore the
widths are rendered correctly. If you were to either remove the DTD from the
page or add the ?xml prolog, IE6 would go into quirks mode and render the
boxes as wide as the red line.
Tim
____________________________________________________________
http://webdesign.meetup.com/ See you at the next meetup!
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA