• Hello,
    I am not very good with CSS and I have a question.
    I have a two column WordPress blog and h2 in white color. The h2:s are used as headings in both the main column and the sidebar. I have now added a Twitter widget in the sidebar and there the h2 is a link.
    Links in the sidebar are declared like this (and are black):
    #sidebar a {
    text-decoration: none;
    }

    #sidebar a:hover {
    text-decoration: underline;
    }

    I want to change the linked h2 in the sidebar so it stays white in color even though it is a link. How do I do this?
    Thanks,
    Joppjopp

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could add something like:
    #sidebar h2 a:link, #sidebar h2 a:visited, #sidebar h2 a:hover, #sidebar h2 a:active {color: #fff;}
    Although I would recommend using a different color for at least the hover.

    Thread Starter joppjopp

    (@joppjopp)

    Thanks!

    Joppjopp

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Different style on linked h2’ is closed to new replies.