how to add space

  • Unknown's avatar

    Hi, I would like to add an extra line between paragraphs in each section of a post before the next header. I found several suggestions on google, including adding
    in the html, but when I preview the post, there still is no space. This seems like a pretty basic function. What am I missing? Thanks.

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    It seems like a basic function, but on websites it’s not really. This is because websites are written in HTML, and HTML hates empty space – the language is designed to ignore any empty space added in a page and move whatever’s below it up to fill that space. This as opposed to word processors which use a different type of code that tries to preserve things exactly the way you add it.

    To add a space you have to add specific HTML that tells it there’s supposed to be a space – what’s called a non-breaking space entity.

    Switch to the HTML view of the editor, and add that code on a new line to force one extra blank line. If you want to force multiple blank lines, add that code multiple times, on a new line each time. When you switch to Visual and publish, the extra lines should now not be stripped out.

    Another option is to use inline CSS via a style attribute in the HTML to add empty space above a paragraph. We have an explanation how to do that here:

    https://en.support.wordpress.com/advanced-html/#extra-line-breaks

  • The topic ‘how to add space’ is closed to new replies.