Forums

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

Home Forums CSS Change font-size by font-family

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #190738
    joshuaiz
    Participant

    I just changed fonts on a site and while I like the change, the new font is a bit too small.

    Is there a way to increase the font-size of just that font without affecting the other fonts I am using? Right now, I can’t think of a way without going into each element individually and changing the sizes there. A more global approach would be ideal.

    The only idea I had was to assign a class via jQuery to all elements using that font-family but I can’t think of how to target them.

    Any other ideas?

    #190740
    joshuaiz
    Participant

    Yep that works…although I think targeting ‘*’ could have some performance issues.

    There’s also this which detects fonts which I tested and it works as well: jQuery Font Detector

    I think I will not be lazy and adjust all the elements I need.

    Thanks for the reply.

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