WordPress.org

Ready to get started?Download WordPress

Forums

Double Line Spacing (7 posts)

  1. PRB11
    Member
    Posted 6 years ago #

    I am updating my site (www.cycleseen.com) so that the posts have double line spacing throughout. I have got this working on the front page by putting the following -- line-height: 2.0em; -- into the stylesheet on the wide and narrow column options. For some reason though when I click more (or on the header) to go to the entire post the line spacing is still single.

    Could someone please inform me how to space it out in all sections (including in the pages too).

    Thanks alot.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    You don't need that line-height in all those places. Just add this any place in there:

    .widecolumn p, .narrowcolumn p {
    	line-height: 2.0em;
    	}

    That will cover all of it.

  3. PRB11
    Member
    Posted 6 years ago #

    Unfortunately I cannot find that line. It might be my version (I am currently looking into upgrading to the latest version, but in the mean time...) but this is the king of code I have on the Style sheet and what I have it set to, yet when I click more on a post it still has it single spaced:

    #content {
    font-size: 1.2em
    }

    .widecolumn .entry p {
    font-size: 1.2em;
    line-height: 2.0em;
    }

    .narrowcolumn .entry, .widecolumn .entry {
    line-height: 2.0em;
    }

    .widecolumn {
    line-height: 2.0em;
    }

    .narrowcolumn .postmetadata {
    text-align: left;
    line-height: 2.0em;
    }

    Thanks

  4. ducati
    Member
    Posted 6 years ago #

    You could probably just do:

    #content p {line-height: 2em;}

    Then every paragraph in the content div would have double line-height.

    If you post a link to the page we can look at the code. Perhaps there is another css rule taking precedence.

  5. PRB11
    Member
    Posted 6 years ago #

    Cheers, I am in the middle of upgrading to the latest version so assuming that all goes ok, I will try your advice and see how it goes.

    The site is, http://www.cycleseen.com but may be down at the minutes.

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Unfortunately I cannot find that line.

    No, you're not supposed to find that line. I said to ADD that code to your CSS file. As in, the whole thing that I posted. Create a new section. Get it?

  7. Anonymous
    Unregistered
    Posted 6 years ago #

    hi otto42, maybe you can help me as well:
    http://wordpress.org/support/topic/187464?replies=1#post-798641
    thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Topic