Later On

A blog written for those whose interests more or less match mine.

Outfoxing WordPress

leave a comment »

WordPress has a problem with horizontal rules. It allows a blank line before a rule but not after, witht the result that the text following the rule is jammed against the rule.


Like this. See how the text is jammed against the bottom of the rule. That doesn’t look right.

If finally figured out a “solution” — the sort of solution someone found once (back in the old days of the IBM 1401 computer with a card reader) when a program bug caused the program to ignore the first card in the input deck. “Solution”: put a blank card at the front of the input deck.

My blank card is a line consisting solely of a single character. After typing the character, I press Shift-Enter to start a new line. Then I make the font color white (just for that character) so that it’s invisible.


x
Like this. Now the rule looks right. I used “x” as the character. Before I thought of changing the character’s font color I used “.” as the character, which was barely noticeable, but with the font color change, any character works.

Written by Leisureguy

12 September 2020 at 11:28 am

Posted in WordPress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: