Re: FN-FORUM: Simple CSS padding problem
date posted 15th July 2005 16:09
> http://www.charitysweepstakes.co.uk/padding/fonts.html
>
> Have a look at the page again, I've added a border to the CSS
> definition. No
> repeat is fine, but I've still got something that's too big in FF but is
> fine in IE...
Firefox is following the W3C specs correctly, IE is not. W3C says that
width is the content width, not including padding.
A google found http://www.ozzu.com/ftopic24024.html
Interestingly Opera renders it like IE, but your DOCTYPE isn't complete so
perhaps both are rendering the page in "quirks mode". Adding a full
DOCTYPE should make IE and Opera behave like FF, following the W3C specs
properly.
Hope this helps!
Anthony
--
www.fonant.com - hand-crafted web sites