Remduce line spacing between sentences
-
Hi there – brand new in CSS. So please help!!
I want to reduce line spacing between my sentences.
Could someone help?
Thanks a mill!
The blog I need help with is: (visible only to logged in users)
-
Hi!
You could modify line-height parameter (currently = 2). You can try the following css sentence (adjust it to your needs):
body, button, input, select, textarea { line-height: 1.5; }I hope this helps you.
-
Great thanks raulanton.
If I want to change the line spaces in a specific post only, what would I do?
-
Hi @nicolettespelic, you can do that by specifically targeting the post in the CSS by using the unique post id body class found in the opening body HTML tag for that post. You can find that by viewing the post and then looking in the opening body selector using the web inspector in your browser. Just as an example, I grabbed the unique post id class from your Hell & Back post and this would increase the spacing between sentences in that post from 1.5em to 2.5em.
.postid-896 .entry-content p { margin-bottom: 2.5em; }If you look at this post HTML, the opening body tag would begin like this:
<body class="single single-post postid-896 ...
- The topic ‘Remduce line spacing between sentences’ is closed to new replies.