Re: Netscape padding vs. IE padding using CSS
by "Mike Taylor" <lonewolf(at)one.net>
|
| Date: |
Sat, 19 Apr 2003 09:27:56 -0400 |
| To: |
<hwg-techniques(at)mail.hwg.org> |
| References: |
MIKETAYLOR01 riveraamd |
| |
todo: View
Thread,
Original
|
|
(SIGH)
Yet *another* hack to make things work the way they should have in the first
place. The Tantek Box Model is a hack for the box CSS to be rendered
correctly in these browsers. But since it's a hack, it's not valid and
proper CSS, so it won't validate....and if the whole point of all this is to
make sure things validate....well, do I need to go any further?
----- Original Message -----
From: "Tim Rivera" <lists(at)timrivera.com>
To: <hwg-techniques(at)mail.hwg.org>
Sent: Saturday, April 19, 2003 1:49 AM
Subject: Re: Netscape padding vs. IE padding using CSS
> > 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
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.