WordPress.org

Ready to get started?Download WordPress

Forums

Remove line-height from title (6 posts)

  1. makta112
    Member
    Posted 2 years ago #

    Hello

    I'm trying to remove the line-height from the titles on my site: http://www.geimaku.com/

    I believe that this is the code that does that:

    .entry-header .entry-title {font-size:30px;
    font-weight:normal;
    text-transform:capitalize;
    line-height:130%;}

    But when I replaced the 130% with normal, it didn't work.

    What did I do wrong?

    Thanks

  2. riversatile
    Member
    Posted 2 years ago #

    Hi,

    The attribute "line-height" for .entry-header and .entry-title is already "normal", because it's inherited from others CSS. Si it makes no change to put "normal".

    See the screenshot here :
    http://www.monsterup.com/upload/1339587754300.jpg

    Cheers

  3. makta112
    Member
    Posted 2 years ago #

    I find the code in the parent CSS then?

  4. riversatile
    Member
    Posted 2 years ago #

    It seems to be in the .entry-title (alone css) :

    .entry-title
    {font-size:25px;
    font-weight:normal;
    text-transform:capitalize;
    line-height:normal !important;}

    When you see the word "!important" behind a CSS attribute, this says to the web browser this CSS attribute must takes precedence over the others.

    Cheers

  5. makta112
    Member
    Posted 2 years ago #

    Hi

    I was able to change the line-height from the titles.

    Now I'm trying to remove it from the side-bar under 'POPULAR STORIES'.

    I tried changing it with this code:

    .wpp-post-title {
    line-height: 1;
    }
  6. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    Assuming you mean the post titles in the sidebar section:
    Since those are part of a list, you have to apply the line-height to the list tags -- i.e. <li>.

Topic Closed

This topic has been closed to new replies.

About this Topic