css h2 color not working

  • Unknown's avatar

    It is correctly italicizing my tag line but not applying the color. Any fixes for this?

    Page is airshipsafari.com.

    Thanks.

    The blog I need help with is: (visible only to logged in users)

  • Hi!

    I understand you want to change your H2 headers text color to be as Green as your header title or your post titles, isn’t it? If so, there is one thing you should need to know: they are not equally Green so you would need to decide exactly which Green do you want. :)
    In case you would like your “Now boarding for the mystic wilds!” text color to be in the same color as “Airship Safari”, you would need to apply this CSS custom code:

    h2#site-description {
        color: rgb(99, 187, 16);
    }

    In case you want your H2 text in a slightly different green (The one in “Hello World!” text), you should use color: rgb(64, 124, 7);

    I hope this helps you… enjoy blogging!

  • Unknown's avatar

    The #site-description seems to have worked (was going for orange actually =) ). Strange that it would not do it within the other h2 where the italic is. That worked outside of WordPress.

    Thanks!

  • Hi.

    This is because the CSS rule we are using is restricted to h2 whose id=”site-description”, as this is the meaning of the selector used. If you would like to extend this color property to every h2 in site, you should remove “#site-description” after “h2”.

    Anyway, I’m glad to read that worked for you!!

  • The topic ‘css h2 color not working’ is closed to new replies.