Link to home
Start Free TrialLog in
Avatar of nsitedesigns
nsitedesignsFlag for United States of America

asked on

modify h2

I am having a difficult time trying to modify the h2 on "interior" pages of my site and not have it impact the home page.  

beta site
http://bb0.036.myftpupload.com/

http://bb0.036.myftpupload.com/models-for-sale/
I am trying to make the "Financing Your Purchase" h2 tag to be smaller but when I modify it, that also modifies the Home page's "Simply Sophisticated " which appears below animation.  

I use this for the Financing Your Purchase  

.main-holder h2 {
    text-transform: capitalize;
    font-family: muli;
}

Open in new window


and this for the home page
h2.title-box_primary, .banner-wrap p  { /*h2 below slider*/
font-weight: normal;
    line-height: 60px;
    font-size: 47px;
    color: #5f5f5f;
text-align:left;
  text-transform: capitalize;}

but when i modify one, it impacts both.  help!
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

but when i modify one, it impacts both.  help!

Are you sure about this and it's not a caching issue?

When you see a selector like .class htmlelement, that CSS will apply to all elements found as a descendant of the class.  In this case, .main-holder is present very high up on the page, so all h2's can be affected by it and changing that entry should affect both pages.

But htmlelement.class should only affect elements of that class.  Since h2.title-box_primary only appears on the front page any change to that CSS should be limited to the front page.
Avatar of nsitedesigns

ASKER

Yes, that is what I thought. That it shouldn't impact each other.  I even viewed on private window to avoid cache issue and it still is a problem.  I changed font to red (not the color i want but it helps to pinpoint problems) and yes, the red is on h2's on interior pages AND on home page's 1) animation 2) simply sophisticated 3) h2's in 4 boxes below animation!

.main-holder h2 {
    text-transform: capitalize;
    font-family: muli;
  color:#bd3100;
 
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks!  that worked!