0

Magento's CMS static block creator automatically trims off extra whitespace, including line breaks. The static block that I'm currently creating is a little close to the element beneath it and I would like to add a line break, but have only managed to do it by adding this at the end:

<p style="color:white">.</p>

Obviously, this is very hacky and should probably be avoided. What is the proper way to accomplish the effect of a line break in a CMS static block.

I'm sure I can accomplish it by wrapping the whole thing in a class and creating a margin-bottom in CSS, but I think there must be an appropriate way to do this within the static block.

Could anyone point me in the right direction?

asked Aug 18, 2016 at 14:11

1 Answer 1

2

Try this. A non-breakable space should work:

<p>&nbsp;</p>
answered Aug 18, 2016 at 14:18
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.