Archived topic
line spacing
20 replies · Started by CRISTO on August 20, 2018
I have recently been having problems with line spacing and not sure why. When I go to this page down near the bottom above the map, when I use the visual editor it spaces one space between each line (for example address
telephone
click here
etc
I have always just double spaced and it works out fine. But suddenly it does not. Looks fine in the visual editor but when I publish there is now spacing between the lines. Not sure what is causing that.
Hi there,
Unfortunately I'm not seeing anything in the code that suggest there should be space below each line.
Do you still see it double spaced when you go back into the editor?
Yes I still do...in the visual editor, but the published page has no spaces. BTW, this is something that has begun happening in just the last few weeks...not sure what might have changed.
Nothing has changed from GP in regarding to that aspect :)
Maybe try this for double space?
https://www.thesitewizard.com/css/double-space-and-line-spacing.shtml
No I realize GP has not changed....maybe I did not describe my problem properly, but previously all I had to do was hit enter twice and it creates a line space. Now that no longer happens....not sure if it is in my settings or where, but driving me crazy. I don't want to double space as a rule, and just want to be able to hit enter twice like I did before.
Sorry I'm not sure what you used to do and why it isn't working anymore. GP just uses the standard WordPress editor.
The link I provided isn't a rule that apply to all sentences - only the ones that have the certain class added to it. It's actually a better method than hitting Enter twice.
Well, whatever is happening did not use to, so I will have to try to find out what has changed.
Sounds good.
I would still recommend you to try the suggested method though :)
Not practical.....adding custom css each time I need to double space is not what I want to do. I would still like to know what changed. This page done earlier, double spacing is fine if I hit enter twice.
The custom CSS only needs to be added once.
You are using <p> tag in the page that's working and the space below is just the bottom margin that comes with the <p> tag:
https://www.screencast.com/t/LnLAuc1k7U1
Whereas the page that's not working is wrapped with <div> instead and there isn't margin bottom:
http://www.screencast.com/t/4ii1z5oLvqZW
The thing is, I am not doing any coding at all. Just using the visual editor. I stay away from code, which is why I use WP and GP.
If you always choose Paragraph in visual editor then the margin should apply.
Sorry I cannot offer more useful information :(
Actually I do use paragraph, and this is what I get in the published version (bottom of the page, just above the map). Visual editor shows spacing, end result does not have it.
Hmm can you try re-adding those lines and make sure paragraph is used?
I can see paragraphs working in lines above:
https://www.screencast.com/t/lzoE0vV3a
And it worked as expected when I did this test on my install:
http://www.screencast.com/t/7MaqnygVI
Clear any caching plugin you might be using as well.
Well, I guess it will remain a mystery....it still doesn't space properly when I do it, and probably not worth spending too much time on it.
I just added a new page here and did the same thing at the bottom and it worked out fine.
So I will have to work around it on the previous page...unless it happens again!
Thanks for your help, Leo.