WordPress.org

Ready to get started?Download WordPress

Forums

Can I Make Just the Italics On My Blog a Different Color? (4 posts)

  1. thebusybibliophile
    Member
    Posted 2 years ago #

    I'm looking for a way to make everything that shows up in italics a different color. I tried changing the color in CSS here:

    #description {
    	font-size: 12px;
    	font-style: italic;
    	letter-spacing: 1px;
    	padding: 12px 0 0 50px;

    but nothing changed. Is this even possible to do?

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    some text sections might be styled with the em tag;
    for these you might be able to add to style.css:

    em { color: #123edf; }

    but for any other texts in italic, you need to go through style.css line-by-line and add a color to each style with font-style: italic; in the formats, such as your given example.

    #description is the css id possibly of the tagline in the header - so this should have changed color - did you clear the browser cache?

    you can post a link to your site if you like.

  3. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    is there a closing } ?

  4. thebusybibliophile
    Member
    Posted 2 years ago #

    @alchymyth - Thank you! That first line did the trick. Sometimes I get so caught up in overthinking the problem that I forget about the simple solutions.

    @SwansonPhotos - Yes, there is a closing }, I just forgot to copy and paste that part.

Topic Closed

This topic has been closed to new replies.

About this Topic