Posted By

jonathanpglick on 11/04/09


bug IE8 Fieldset legend

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


IE8 Fieldset Legend bug fix

 / Published in: CSS

This IE8 bug causes the top half of a fieldset's border to not show when it contains a <legend> that is hidden with display: none;

The solution comes from Be sure to put the following CSS into an IE8 conditional comment because it will fuck with other browsers' rendering.

  1. <!--[if IE 8]>
  2. legend {
  3. display: block !important;
  4. height: 0;
  5. margin: 0;
  6. padding: 0;
  7. width: 0;
  8. visibility: hidden;
  9. }
  10. <![endif]-->

Report this snippet  

You need to login to post a comment.