HighDots Forums  

Re: Simple Example -- IE 6 or Firefox, Who's Right?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Simple Example -- IE 6 or Firefox, Who's Right? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Bialasinski
 
Posts: n/a

Default Re: Simple Example -- IE 6 or Firefox, Who's Right? - 05-10-2005 , 09:40 PM






"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




Reply With Quote
  #2  
Old   
Tony LaPaso
 
Posts: n/a

Default Re: Simple Example -- IE 6 or Firefox, Who's Right? - 05-10-2005 , 11:01 PM






"Martin Bialasinski" <agr30+news (AT) uni-koeln (DOT) de> wrote

Quote:
"Tony LaPaso" <tlapaso (AT) comcast (DOT) net> wrote:
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."

Thank's exactly what I was looking for. Thanks very much.

--
Tony LaPaso




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.