How to insert blank line
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?
The blog I need help with is michaeloconnell.org.uk.
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:
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.
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>
<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>
<p style="padding-top:24px;">TEXT HERE</p>
for extra space above a paragraph.
Thanks for this. I used the HTML code for top padding of 48px, and it worked fine.
The topic ‘How to insert blank line’ is closed to new replies.