Modify Font Size for Italics

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6985
    Lstarbirdlstarbird
    Member

    Howdy! I chose a slightly larger font size for my theme, but it appears that when I do italics (em) that the font is smaller. Is there a way to modify this globally for the theme instead of having to add extra code each time I want to add an italics?

    Thanks a ton!

    PS- See an example here http://hellnocancershow.com

    #7021
    ErnestoErnesto
    Member

    Hi! If you’re only using italics in the em, you can use that as a CSS class an set a unique italic font size. For example:

    .em {italic 15px/24px ‘Arvo’, Georgia, Times, serif;}

    Cheers!!

    #7063
    Lstarbirdlstarbird
    Member

    Hi Ernesto!

    Thanks for the feedback, but do I just place this under Appearance > Theme Options > Custom CSS? I’ve pasted it there but don’t see a difference.

    Thanks again!
    Lena

    http://hellnocancershow.com/

    #7069
    ErnestoErnesto
    Member

    Hi! Enter the code without the dot in front of it, it should modify all HTML emphasis tags.

    Cheers!

    #7079
    Lstarbirdlstarbird
    Member

    Hi Ernesto! Shoot – I tried that too but still no luck. 🙁 What the heck could I be doing wrong? Am I adding this in the right place as mentioned above?

    Thanks again!

    #7090
    ErnestoErnesto
    Member

    Hi! Go to your Custom CSS Section in your Theme Options Panel and enter the following code:

    em {font: italic 15px/24px ‘Arvo’, Georgia, Times, serif;}

    Cheers!

    #7253
    Lstarbirdlstarbird
    Member

    Thanks Ernesto! That worked like a charm! Looks like we were missing “font” in the previous code…all good now!

    Cheers!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Modify Font Size for Italics’ is closed to new replies.