how to define this for h2 / 3

Discussion in 'CSS' started by Nystul, Apr 27, 2006.

  1. #1
    I want to put h2 / h3 tags aroundm y code, but i want the text to remain the same design as before .

    <h2> blah blah blah </h2>

    so how do i define
    h2 {
    }

    to make it drop all its usual properties, and retain the earlier fonts properties ?

    Thanks alot!
     
    Nystul, Apr 27, 2006 IP
  2. Danny

    Danny Active Member

    Messages:
    732
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    78
    #2
    exactly as you have it

    h2{
    }

    or

    .h2{
    }

    in your CSS should do it.
     
    Danny, Apr 27, 2006 IP
  3. SoxFan

    SoxFan Peon

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You would have to specify exactly what you wish for it to look like. So maybe...

    h2 {
    font-size: 12px;
    font-weight: normal;
    font-family: your font family here;
    line-height: 14px;
    margin: 0;
    padding: 0;
    }

    You could also use a CSS shortcut to acheive the same goal...

    h2 {
    font: normal 12px/14px your font family here;
    margin: 0;
    padding: 0;
    }
     
    SoxFan, May 1, 2006 IP