Treehouse: Grow your CSS skills. Land your dream job.

Trying to target ‘a’ in ‘h2′ class

  • # August 23, 2009 at 7:15 am

    Hi all,
    I’m trying to style a h2 that’s also a link (‘a’) in a class called .post.
    Having attempted to inform myself from various sources, I had fondly imagined that the following might work:

    .post h2 a {font-family:Georgia, “Times New Roman”, Times, serif; font-size: 1.1em; letter-spacing: 5px; text-transform: uppercase; margin: 0px 0 3px 90px}

    Naturally, it doesn’t, so would a kindly soul perhaps care to point out my errors?

    I can style the h2 in .post on its own which works in FF but but not in IE.


    # August 23, 2009 at 10:49 am

    Ha ha, no worries, I’m sorted.
    Stupid mistake in markup.


    # August 23, 2009 at 4:03 pm

    hehe awesome :) well done :)

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

You must be logged in to reply to this topic.