More in this section

Forums / General Discussions / Built-in style sheet overrides custo css

Built-in style sheet overrides custo css

3 posts, 0 answered
  1. Vincent
    Vincent avatar
    41 posts
    Registered:
    21 Sep 2007
    11 Jan 2011
    Link to this post
    Hi,

    I have a master page linked to a custom style sheet.
    In the custom style sheet there is :

    .sfContentBlock h2
    {
        border-bottom: 1px solid #D4D4D4;
        line-height: 2;
    }

    But when I refresh the page, the line-height property is not applied, but rather this one (seen with Firebug) :

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    11 Jan 2011
    Link to this post
    This should work
    line-height: 2 !important;
  3. Vincent
    Vincent avatar
    41 posts
    Registered:
    21 Sep 2007
    11 Jan 2011
    Link to this post
    Hi Steve,
    Thank you for your solution.
    I have had good results specifying a parent element class :

    .public-wrapper .sfContentBlock h2
    {
        border-bottom: 1px solid #D4D4D4;
        line-height: 2;
    }

    Vincent
3 posts, 0 answered