How to Change Font in CSS Only for Certain Sections?

Community Forums Forums Design Tips and Tricks How to Change Font in CSS Only for Certain Sections?

This topic is: resolved

Tagged: , , ,

This topic contains 2 replies, has 2 voices, and was last updated by  MM 10 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71500

    MM
    Participant
    Post count: 128

    Hi

    I’m trying to learn how to change font sizes on certain headings etc. For example, my H6 is specified as a certain size, but on the blog archive list page, I’d like it to be another size – but only on that page. Is there a CSS tutorial or quick tips on how to do this? No link as on localhost.

    Thanks!

    #71559

    Robin
    Participant
    Post count: 320

    If you use Chrome while you’re developing the site, you can right click on anything and inspect the element with Chrome’s Developer Tools (or Firebug in Firefox). If you look at the top of the page’s code, you can see the different classes applied to a page, and use that to target elements on that page. So, an h6 might be .archive h6 on the archive page, or .home h6 on the home page of the site.

    Good luck! HTH


    I do the best I can with what I’ve got. (say hey on twitter)

    #77525

    MM
    Participant
    Post count: 128

    Robin – thank you! That’s perfect.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.