How can you use different headline fonts in CSS

  • Author
    Posts
  • #179980

    seandodson
    Member

    Hello, i’ve just started with CSS and have managed to change my header font. But it changed all the headings above my postings too. How can you make it so the header font is one thing and the post headings another?

    best wisehs,

    Sean

    #180093

    rosclarke
    Member

    There are different header classes, labelled h1, h2, h3 etc. You can set code for each separately.

    #180158

    seandodson
    Member

    how would you do it for h2?

    #180168

    rosclarke
    Member

    h2 {font-size: 0.8em;}

    Put whatever size you want.

The topic ‘How can you use different headline fonts in CSS’ is closed to new replies.