Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Font Size and Color Not Changing In IE 7, 8

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38328
    moron1384
    Member

    Hi CSS Trickers, I am a newbee. The problem is that I have changed color and font in CSS, it works well in all the browsers except Internet Explorer. There is no changes at all in IE. Here is the code I use:

    h8 {font-size: 23px; color:green;font-weight: bold;font-family: tahoma;
    }

    Please help me. Thanks.

    #103823
    chrisburton
    Participant

    h8? There is no h8 element. It goes from h1 to h6.

    #103824
    moron1384
    Member

    Thanks Chrsitopher for pointing this out. But how do I create a new ‘h’. I like to change the font of only two lines. For example If I change h2 font and color, it applies to other texts as well. Thanks.

    #103826
    chrisburton
    Participant

    You would have to create a special class in the markup

    Example

    html

    Title


    Title

    css

    h2 {font-family: Georgia, serif; font-style: normal; color: red;}
    h2.whatever {font-family: Georgia, serif; font-style: italic; color: blue;}

    Note: Remember that h1 to h6 tags are for important content

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.