"Tony LaPaso" <tlapaso (AT) comcast (DOT) net> wrote:
Quote:
First, notice that Firefox simply ignores the "width:500px" rule
whereas IE honors it. Why is that? |
Because your document is rendered in quirks mode due to the xml
prolog. In quirks mode, IE applies width to inline elements, a
violation of the css specification.
Quote:
Is IE correct or is Firefox? |
Firefox.
Quote:
I'm not sure which browser is rendering it
correctly but I'm tending to think it's IE. |
When IE renders something differently from Mozilla and Opera or Safari, it
is quite a safe bet IE is wrong.
Quote:
If you change the "display:inline" to "display:block" Firefox *will*
honor the width. |
Because width applies to block elements.
Quote:
The second point I wanted to ask about is the way Firefox chops off the
upper border. Why is that? |
From the CSS specification:
"Although margins, borders, and padding of non-replaced elements do
not enter into inline box height calculation (and thus the line box
calculation), they are still rendered around inline boxes."
Bye,
Martin