Global Line spacing

Hello!

How do I control global line spacing in a post and on a page?

TIA

Hi Marshall,

Thanks for writing in!

By default, the global line height is 1.7em. In the stack stylesheet, there is this code which was implemented globally:

body {
    line-height: 1.7;
}

This applies to posts and pages. On the other hand, if you have created the posts or pages in Pro editor and have inserted a text element, the line height of the text element is 1.4 which is a default of the text element.

Hope this helps.

Hi,

Thanks for the prompt reply.

Yes, that helps.

What about controlling the Line Spacing in the Classic Feature List short code?

TIA

Hi Marshall,

To adjust the Classic Feature List text line-height, please add this to Theme Options > CSS

.x-feature-box-text {
	line-height: 1.7;
}

Feel free to adjust the 1.7 value.

You can find the proper CSS code selector using the Chrome browser Developer Toolbar
For the CSS code itself, I suggest that you get started with this tutorial

Thanks,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.