WordPress.org

Ready to get started?Download WordPress

Forums

Reduce space between paragraphs? (6 posts)

  1. Mandarke
    Member
    Posted 5 years ago #

    Does anyone have a clue where to edit the stylesheet.css in order to reduce the space between paragraphs? I'm using the K2 theme and I can tell you that whoever provides an answer to the question will be held in very high regard.

  2. Anna Johansson
    Member
    Posted 5 years ago #

    Set the margins and paddings of <p> to zero in style.css with:

    p {
    margin:0;
    padding:0;
    }

    You'll probably want to have some margins but you can start out with that and then just try different values (in px) to get the look you want. Also, the margin-value accepts negative values (like -10px and so on.)

    Good luck!

  3. Mandarke
    Member
    Posted 5 years ago #

    I can't find <p> in the style.css - under what section is it? Are you sure this is where to look for the K2 theme style.css? Many many thanks!

  4. Anna Johansson
    Member
    Posted 5 years ago #

    <p> is the html-tag for "paragraph".

    Adding that code in the stylesheet (style.css) will affect how it looks.

    it's not supposed to be there, you're adding it.

  5. Mandarke
    Member
    Posted 5 years ago #

    you're great!

  6. Anna Johansson
    Member
    Posted 5 years ago #

    *bows*

    Nice to see someone notices that fact! *lmao* (kidding, just kidding!!)

    (If you solved it you may want to put this thread as "resolved".)

Topic Closed

This topic has been closed to new replies.

About this Topic