Forums

Give help. Get help.

  • # January 18, 2013 at 7:27 pm

    I am creating a WordPress website. Currently, the anchor tag is set to a mid-green color and I would like all of my links to be this color. Except for my titles for my blog posts, which is subsequently a link and an h2. I just found out today that even if I give a color property of white to my h2, it will be overridden by my anchor tag properties. So, with that said, I need to know how to make my blog posts white. Here is the code I am dealing with…

    Anchor:

    a {
    font-size: 1em;
    outline: none;
    color: #A7BC60;
    transition: all 0.3s ease-in;
    -webkit-transition: all 0.3s ease-in; /*Safari & Chrome*/
    -moz-transition: all 0.3s ease-in; /* Firefox 4 */
    -o-transition: all 0.3s ease-in; /* Opera */
    text-decoration:none;
    }

    h2:

    h2 {
    font-size: 2em;
    font-family: ‘Arvo’, serif;
    font-weight: normal;
    color: #FFFFFF;
    text-shadow: 0px 2px #A7BC60;
    }

    And finally, the HTML and PHP:

    “>< ?php the_title(); ?>

    I feel like this is something easy, but I have not been able to figure out how to bypass the anchor tag and use the properties for the h2. Thank you in advance!

    # January 18, 2013 at 7:34 pm

    h2 a {
    color #fff;
    }

    # January 18, 2013 at 8:39 pm

    [You sure?](http://codepen.io/katbella5/pen/mCesK “Works for me.”)

    # January 18, 2013 at 8:55 pm

    Sweet!

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

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag