fieldset legend in IE stays black

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JackRbt
    New Member
    • Aug 2008
    • 22

    fieldset legend in IE stays black

    if FF everything looks fine, but in IE7 the text color is black.

    Code:
    fieldset {
      color: #336699;
      font-family: arial,verdana,sans-serif;
      font-size: 10pt;
      font-weight: bold;
    }
  • David Laakso
    Recognized Expert Contributor
    • Aug 2008
    • 397

    #2
    Insufficient information? Provide the entire page (x)html and css-- or better yet, a clickable link to to the problem page.

    Comment

    • JackRbt
      New Member
      • Aug 2008
      • 22

      #3
      Thanks. I've created a minimal test case. The text inside the box is colored, but not the legend, in IE7. The correct weight and size and family do display correctly, though. FF shows it all okay.

      Code:
      /* Generated by KompoZer */
      fieldset {
        color: #336699;
        font-family: arial,verdana,sans-serif;
        font-size: 10pt;
        font-weight: bold;
      }
      and

      Code:
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html><head>
      <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>test</title>
      
      <link type="text/css" href="test.css" rel="stylesheet">
      </head><body>
      <form method='post' action=testing.php name='reg'>
      <fieldset>
      <legend>Please fill out the required fields and then click Submit</legend>
      <p>test text
      </fieldset>
      
      </body></html>

      Ohhhhhhhhhhhhhh h... now I see that IE makes me set a style for <legend>, whereas FF does not.

      So that gives rise to a new question: is CSS somewhat flaky still, so that I have to always be looking for differences between browsers? Or is this a rare case?

      Also, is it a bug? (All attributes but color get inherited.)

      Comment

      • David Laakso
        Recognized Expert Contributor
        • Aug 2008
        • 397

        #4
        CSS is not flaky. Some say support for CSS among the browsers out of Redmond is flaky.

        Comment

        Working...