How do I add ‘hard’ spaces and blank lines to blocks of text?
-
I’m trying to ‘justify’ text by adding leading spaces and/or leading blank lines.
They all get removed upon saving.
How can I insert ‘hard spaces’ or ‘hard line feeds’? -
-
I wish I could.
Justify is not an option in the paragraph block.
Is this because I’m using the Free WordPress.com version and not the Premium?I would send you a screen shot, but I can’t figure out how to add it to this reply.
-
You can include the screen shot in your site’s media library. We can take a look at it from there. Just let us know the site URL so we know where to look.
-
Thanks, I did just that.
Screen shot is menu.jpg
Site is johnerbes.wordpress.com and is unpublished as yet. -
Ah, are you trying to do this inside of a Columns block? That isn’t currently available under Columns.
-
Ah, the never-ending curse of columns…
Anyway, it it possible to insert some “hard space” character encoding manually in the HTML code for the page?
I program, but I don’t know HTML or CSS.
-
You could try this in HTML:
That’s literally the HTML character for a space, so it should work as desired. :)
-
Thanks mm,
I did give the hard space a try yesterday, but either I don’t know how to use it correctly (high probability) or it doesn’t work in columns (a lower probability.)
I tried to insert it ahead of the text I was using in the column, but it just ignores it.
There is one strange thing I have noticed.
If I preview the page, and then right-click for Inspect Element, the HTML code of the page actually shows the blank leading spaces, but they are not displayed. -
Does the
show in the inspector when you publish the page too, not just the preview mode? -
Hi LiKa,
I seem to have misspoken earlier.
If I insertit just shows up as a text string in the preview mode and after updating.
I give up. WordPress has beaten me.
-
-
Make sure you switch the block to HTML mode before you insert that code. If you add it in visual/regular mode, it will appear in the preview/published post as you describe.
To switch to HTML mode, click the … icon in the block toolbar, and select Edit at HTML.
If you did add it in HTML mode, can you tell me the URL of the specific post or page, or if it’s still a draft, the title, and I can take a look at it from my end.
-
Well, that actually worked.
Thanks a bunch everyone.I might have gotten this working for me before but I couldn’t tell because the inserted nbsp; characters are very, very narrow. It took twenty of them to move the caption over by about 1/2″ on the screen.
-
I think I’ve finally got it.
Someone suggested earlier that Justify was not supported inside of a Column Block. I gave the following a try and it worked.
<p style=”text-align:center”>
-
- The topic ‘How do I add ‘hard’ spaces and blank lines to blocks of text?’ is closed to new replies.