Agency: H2 CSS home page vs. Blog page

Community Forums Forums Design Tips and Tricks Agency: H2 CSS home page vs. Blog page

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  Tony @ AlphaBlossom 1 year, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18470

    Rosesilk
    Participant
    Post count: 17

    Hello,

    On the home page of my site:  http://stress-free-mama.com/  you can see that I have the H2 set at 20px so that they look good in the bottom widgets area (for example: the “Seven Easy Steps to Stress Relief with Essential Oils” heading).

    This looks good.  But…

    On the blog page:  http://stress-free-mama.com/blog/  this font size is too small.  The same “7 Easy Steps…” should be 28px, but it is a H2 and is inheriting the 20px.

    I have fussed with the CSS and can’t seem to separate the 2 pages so that they behave differently.

    Anyone have and ideas for me?

    Thank you in advance.  I really appreciate your help.

    Julia

    #18480

    media317
    Participant
    Post count: 52

    To change the home h2 tag, add the following to you css:

    <code>

    .home h2 {
    font-size: 20px;
    }

    </code>

    And then set you h2 back to the larger size.


    Alan Smith
    Media317

    #18485

    Rosesilk
    Participant
    Post count: 17

    Hi Alan,

    Thank you for your help but unfortunately that didn’t do it.  Somehow the setting on the blog page trumps the setting on the home page.  I did some more tweaking to try to get it to work but still can’t figure it out.

    Any other ideas for me?

    Thank you!

    Julia

    #18487

    Tony @ AlphaBlossom
    Participant
    Post count: 357

    Try:


    .home #content h2 a {
    font-size: 20px;
    }

    If that doesn’t work, you can add !important after 20px (font-size: 20px !important;)

    Hope that helps.

    Tony
    AlphaBlossom


    Tony Eppright | http://www.AlphaBlossom.com | @_alphablossom

    #18490

    Rosesilk
    Participant
    Post count: 17

    Yeeaa!!  Tony that did the trick.  Thank you very much.

    Julia

    #18491

    Tony @ AlphaBlossom
    Participant
    Post count: 357

    Glad to hear it, Julia!


    Tony Eppright | http://www.AlphaBlossom.com | @_alphablossom

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.