How to insert vertical white space? Empty paragraph tags are auto-removed...
Ideally I can just add a new Content block of HTML that is:
but it appears empty paragraphs are automatically removed by the concrete5 editor. Is there a way around this?
It seems adding <p></p> to a block that already includes some text results in the blank line NOT getting removed. But, in my case, I have an empty block that I want to add content to, where the content is simply a blank line. In this case, the editor removes my blank line.
- You can use block design to add a top or bottom margin
- You can insert a spacer block (free from the marketplace)
Within a block is more tricky. If you go to html view, you can insert a div or p with content of a single " " . If you want to set a precise height, add a style attribute to the element for height in pixels. If you try and do this with an empty element instead of the non breaking space, something usually breaks.
Can't seem to get non breaking space to go in here.
take spaces out between letters
& N B S P ;
Non breaking space is something. Seems simpler to me.
Or are you using the content block and going into the html edit? Try using just an HTML block, not a content block...
I've always been using the Content block, and clicking on the HTML icon to bring up the editor to insert HTML code. Here, a paragraph with spaces (e.g. <p> </p>) and <br> are removed by the editor when clicking Update.
However, I do see there's an HTML block, and there, this code can be saved successfully.
Thanks for the tip.
Additionally, I've had good luck inserting arbitrary vertical space in redactor by using shift-enter (which inserts a <br> instead of a <p>)