Need help? Check out our Support site, then


How to insert blank line

  1. seamusoconnell
    Member

    If you want to insert blank lines into a post or page, for example to increase the spacing between paragraphs, you can't just enter new line - the editor subsequently removes the white space.

    However, it seems to me that an easy way to do it is to insert a line with some dummy text and use <Select text colour> in the Kitchen Sink to set the dummy text to white (or whatever is the background colour). I’ve done it in a blog I've just started to set up. But are there any problems I’m not aware of?

    Seamus O'Connell

    The blog I need help with is michaeloconnell.org.uk.

  2. In the Visual Editor, when you press return (enter), you should get one blank line. If you don't want a blank line, then hold "shift" as you press return.

    (be sure "Format" is set to paragraph)

    If you want more than one line of space, you can use html to define how much space you want:
    http://wpbtips.wordpress.com/2009/06/10/formatting-text-pt-1/

    There is nothing wrong with your hidden text, but if someone copies and pastes, then the text will become apparent. It doesn't look very professional… With coding you can control more precisely how much space you want.

  3. Yes: the dummy text will show if a user has set their browser to different colors, it will show if someone highlights or copypastes the text, it will show in the RSS feed of a post, and it may show if the theme displays post excerpts on category and other archive pages.

    The right way to increase the space below a paragraph is to add bottom margin or bottom padding in the HTML editor, for example:
    <p style="margin-bottom:24px;">TEXT HERE</p>
    or:
    <p style="padding-bottom:24px;">TEXT HERE</p>

    Change the number to adjust the space.

    Or, of course:
    <p style="margin-top:24px;">TEXT HERE</p>
    or
    <p style="padding-top:24px;">TEXT HERE</p>
    for extra space above a paragraph.

  4. ~~

  5. seamusoconnell
    Member

    Thanks for this. I used the HTML code for top padding of 48px, and it worked fine.

    Seamus O'Connell

Topic Closed

This topic has been closed to new replies.

About this Topic