Default top and bottom margin disappear in IE7: why

Discussion in 'HTML' started by GTalbot, Nov 10, 2007.

  1. GTalbot

    GTalbot Guest

    [followup-to set to comp.infosystems.www.authoring.html]
    Hello fellow HTML and markup coder colleagues,

    Please visit this url:

    http://www.gtalbot.org/BrowserBugsSection/DefaultTopBottomMarginsForPargDisappear.html

    I would appreciate it if someone could explain

    1- why MSIE 7 render this simple webpage so differently from Firefox
    2.0.0.9, Opera 9.50, Safari 3.0.3?

    2- If this is due to a bug in MSIE7? If so, which one?

    3- When querying the currentStyle of margin-top and margin-bottom of
    #OrdinaryPargLime with IE developer toolbar or by querying with
    currentStyle.marginTop, the value returned is "auto". When creating a
    nested <p> with margin declaratively set to auto inside a div with
    Parent-Floated-Yellow-Div class, then the top margin and bottom margin
    suddenly occur in MSIE7 but are removed in other browsers (Firefox
    2.0.0.9, Opera 9.50, Safari 3.0.3).

    What I am trying to say is this: in MSIE 7, the current style values
    of margin-top and margin-bottom for #OrdinaryPargLime and for
    #OrdinaryPargWithMarginAutoOrange are the exactly the same: auto but
    even for MSIE 7, those 2 paragraphs' vertical margins are rendered
    very differently.

    4- In MSIE 7, paragraphs have default margins. Why are they removed
    (at least not visible, not rendered) for #OrdinaryPargLime ?

    Best regards,

    GĂ©rard
    [followup-to set to comp.infosystems.www.authoring.html]
     
    GTalbot, Nov 10, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,998
    Smokey Grindel
    Dec 2, 2006
  2. Cuthbert
    Replies:
    8
    Views:
    437
    Ancient_Hacker
    Sep 13, 2006
  3. Replies:
    5
    Views:
    937
    C A Upsdell
    Nov 25, 2008
  4. Cal Who
    Replies:
    1
    Views:
    433
    Alexey Smirnov
    May 16, 2010
  5. Cal Who
    Replies:
    4
    Views:
    579
    Cal Who
    May 17, 2010
Loading...

Share This Page