Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

What is the Stylish Extensions code for bring lines of text and paragraphs closer together?

  • 5 replies
  • 1 has this problem
  • 11 views
  • Last reply by cc71

If I for whatever reason want to change text spacing or say change the spacing between text and a photograph, how would I go about it?

If I for whatever reason want to change text spacing or say change the spacing between text and a photograph, how would I go about it?

Chosen solution

What is the exact code that is used?

Try:

P { margin-top:0px !important; margin-bottom:0px !important; }
Read this answer in context 👍 0

All Replies (5)

Chosen Solution

What is the exact code that is used?

Try:

P { margin-top:0px !important; margin-bottom:0px !important; }

Modified by cor-el

Merci beaucoup. Thanks

I tried entering the code that was suggested but it didn't have any effect that I could see. Maybe some websites have built in line spacing settings that you have to take or leave.

That code only works for P tags.
You may have to add a selector for other elements like DIV and SPAN or use BODY, BODY * for all elements, but that may have side effects.
You usually need to inspect the DOM of a page to see what needs to be adjusted to get the best result.