• Resolved gaznev2000

    (@gaznev2000)


    Hi All, I am trying to target a title in wordpress to make it a different colour to the rest of my titles.

    I’m currently using:

    body.single div#page div#content.narrowcolumn div.sub-stories-holder div div#post-26565.post-26565 h1{
    	color:#063
    }

    But its not working.

    This is the page I’m trying to target. Title “Get fit at Macs”

Viewing 4 replies - 1 through 4 (of 4 total)
  • The reason it’s not working because there is a style for <a> tag which take precedence over. In your code above, try putting a after h1 and it should work.

    Also, you don’t need that many selectors.

    esmi

    (@esmi)

    Try #post-26565 h1`.

    I’d recommend using Firefox with the Firebug add-on for this kind of CSS troubleshooting. Or use whatever developer tool is available in your web browser. We don’t usually deal with general CSS issues here.

    Thread Starter gaznev2000

    (@gaznev2000)

    Thanks for the quick reply guys.
    I will try it out.

    Thread Starter gaznev2000

    (@gaznev2000)

    Perfect, putting an “a” selector after my H1 tag worked.

    Thanks for your help

    Regards
    Gary

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to target a indivual title in CSS?’ is closed to new replies.