Archived topic
Edit Line Spacing
5 replies · Started by Darin on February 2, 2023
Good Day,
I would like to modify the line space on all of my blog posts only. Will this need to be done through CSS?
I do not want to use the return key to add a paragraph between each line.
If I modify the <p> element, will it change all <p> elements on the entire site?
Thanks for your guidance.
Darin
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Hi Leo,
I don't have any pages live. Still in draft mode and working on the structure of content for blog posts.
Where can I add CSS to determine line spacing for all current and future blog posts? Or do I need to edit each page? I am guessing I would need to create an ID#?
Thanks,
Darin
Try this CSS:
body.single .entry-content p {
line-height: 0.5em;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Yes this looks like it will work. Thank you Leo.
Much appreciated!
Darin
No problem :)