You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#107543 Change line spacing

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by imservan on Friday, 23 April 2021 11:03 BST

imservan
Where can I change the spacing between 2 lines?

Ryan
This should be set in your template stylesheet, not in the editor. Usually, this is done in the paragraph tag, eg:

p {
    line-height: 1.5em;
}
but I suggest you contact your template developer, as depending on the template, you may be able to adjust this using the template's framework tools.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

imservan
Thanks for the quick info.
I just want to reduce the line spacing for individual seeds. For example for the references under a picture.

Example:
Source: example text, example text, example text, example text, example text, example text, example text, example text,
------------------------------------------
How to write the code to reduce the line spacing

Ryan
I would still suggest using a custom css rule in your template.css file, eg:

.line-spacing {
    line-height: 1.5em;
}
Then this can be selected and applied to the appropriate paragraph from the Styles list in the editor toolbar.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

imservan
Thank you for your help. This is how I wanted it.