WordPress.org

Support

Support » Themes and Templates » CSS help – formating an h2, can't change color

CSS help – formating an h2, can't change color

  • So I have this html:

    <li id=linkcat-7 class=linkcat><h2>Professional Organizations</h2>

    I have this css on line 544 (I know this has an affect on the html because I can alter the size of the .linkcat h2 by altering it here):

    .linkcat h2 {color: #3F6; margin: 0; padding: 0px; line-height:none; font-size:14px;}

    And this on line 499 (I know THIS is controling the color of my html above, because when I change the color here, it changes it for that html output):

    #content h2,
    #content h3,
    #content h4,
    #content h5,
    #content h6 {
    	color: #000;
    	line-height: 1.5em;
    	margin: 0 0 20px 0;
    }

    What am I missing? 🙂

Viewing 1 replies (of 1 total)
  • Hi

    Have you tried

    #content .linkcat h2 …

    As default h2 is assigned an id rather than class so you need to release from the constraints of #content.

    Alternatively use the id of your h2 which is linkcar-7 so

    #linkcat-7 h2 …

Viewing 1 replies (of 1 total)
  • The topic ‘CSS help – formating an h2, can't change color’ is closed to new replies.