Remove margin between lines of a paragraph
-
Hi, there is to much space between 2 lines of a paragraph. The helpdesk suggested to look for the solution on this forum. Can someone help me ? Thanks !
The blog I need help with is: (visible only to logged in users)
-
Howdy vast!
Try this code out!
body, button, input, select, textarea { line-height: 1; }If the 1 isn’t enough, you can go .75, 1.25, etc.
Let me know how it goes!
-
Thanks Eallas. It’s the first time i will change things with a code. Hopefully I will put it on the right place. I will try.
-
All you need to do is go to https://wordpress.com/customize, (if applicable) click on your website, and click on CSS. Here, you’ll copy what I provided and paste it into there.
-
Ok, the link worked. But do not exactly where to put the code. Can I get your email so I can send you a screenshot ? Many thanks !
-
If you do not want to give your emailadress on this forum, you can contact me through my contactform on my website.
-
Could you potentially upload it to an image hosting site like http://imgur.com/ and provide the link of the picture?
-
Hi, I used the code but it only changes the width between sentences in a paragraph, not sentences who are separated with enter or shift+enter. Do you have other suggestions ? Many thanks in advance !
-
And the tekst in the widgets reacts more on the code than the tekst in the homepage … !?
-
I retested it. I would suggest to remove the code I provided before. This one should do better.
p { margin-bottom: -25px; } -
Thanks.
I tried but the space between lines remains. :-(
What alters with this code is the space between the title and the paragraph.
Others suggestions ? -
Do you want to get rid of the space completely? If so, you can set it to -35 and that should work.
-
With -35 the space between the title and the sentences disappears indeed but the space between the sentences of the paragraph remains. :-(
Other suggestions to get rid of the space between the sentences ? -
From the looks of it, the paragraphs/sentences are grouped as a header 5 and the titles are a paragraph. Was this intentional? If so, that’s what could be affecting it all.
-
Yes, I want sth larger (an eyecatcher for people who do not read the whole tekst) and beneath it I give the explanation. That’s the reason why I used 2 different lettertypes in size.
-
So we right now we’ve fixed the problem with the space in between the title and sentences but you want to get rid of the space between the sentences and title now, correct?
-
Yes, I want to get rid of the space between the sentences.
Instead of :
hsddhhdhdhdhdhd
jdjjjddkjkkd
I want :
hsddhhdhd
hdhdhd
jdjjjddkjkkd -
Hi there, you are using a lot of h5 heading settings on the text I’m seeing on your pages, which is generally not meant for content, but for headings. Adjustments to paragraph line spacing and such will not fix that, we have to use the following. You can adjust the top and bottom margins (first and last number respectively) to do that.
h5 { margin: 2rem 0 1.125rem; }
- The topic ‘Remove margin between lines of a paragraph’ is closed to new replies.