WordPress.org

Ready to get started?Download WordPress

Forums

CSS help - formating an h2, can't change color (2 posts)

  1. AardvarkGirl
    Member
    Posted 2 years ago #

    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? :-)

  2. kevin heath
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags