WordPress.org

Ready to get started?Download WordPress

Forums

How do I change the line spacing? (6 posts)

  1. 2xsadamas
    Member
    Posted 2 years ago #

    I have read through a number of posts about changing the line spacing, but I have not been able to find the code they refer to.
    Here is the link to the page
    http://spiritualfilms-thesecularapproach.com/content
    I would like to tighten up the smaller letters. Look more
    like single spacing

    Also is there a way to change the kind of font and the size, without picking different header sizes?

    Thank you for any help

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    in you theme's stylesheet, you can specify the font-size & line-height for the elements you want to change

  3. 2xsadamas
    Member
    Posted 2 years ago #

    I have seen that from other posts in here, but have not been able to find anything about font size or line height

    Thank you for responding

  4. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    In your theme's stylesheet look for this block:

    .entry-content,
    .entry-content p,
    .slider_post_entry p,
    .entry-content ul,
    .entry-content ol,
    .comment-entry ol {
    	color: #2c2b2b;
    	font: normal 12px arial;
    	line-height: 18px;

    You can change the last two lines to something like

    font: normal 14px arial;
    	line-height: 14px;

    Rather than marking up your lists as a load of one-line paragraphs, an unordered list would be more semantic, then you would target the list items in the css.

  5. 2xsadamas
    Member
    Posted 2 years ago #

    Thank you for your prompt response, not sure what you mean by target the list items in css. I am very new at dealing with css in blogs.

  6. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    OK you can ignore that for now, however theres an overview of marking up unordered lists at http://www.w3schools.com/tags/tag_ul.asp
    eg: `<ul>
      <li>Coffee</li>
      <li>Tea</li>
      <li>Milk</li>
    </ul>`
    to target the list items in CSS, you would put rules in the stylesheet to style the list

Topic Closed

This topic has been closed to new replies.

About this Topic