Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Trying to target ‘a’ in ‘h2’ class

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25846
    twaddler
    Member

    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:

    Code:
    .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.

    Thanks
    Yan

    #62588
    twaddler
    Member

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

    Phew!

    #62585
    Rob MacKay
    Participant

    hehe awesome :) well done :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.