none
Left margin of <legend> in IE8

    Question

  • I found that there is no default left margin of <legend> in <fieldset> in IE8.  For example,
    <fieldset><legend>Legend</legend><div>Content</div></fieldset>
    It looks fine in Firefox, Opera, Chrome, and Safari, even in IE7 or IE8 compatibility view.  But in IE8 standard mode, the legend text is displayed from almostly the left edge of the fieldset, quite ugly and I have to add some margin-left for IE8 individually to make it better looking and consistent with other browsers.  Does anybody else notice that? Why IE8 make this change?

    Monday, April 20, 2009 1:28 AM