We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Changing the line height and line spacing between list items

I want to change the space between lines in the Rich Text Box  as i am very limited in terms of space. Especially the unordered/numbered List takes up a lot of unneccesary space.

I've marked the aread i would like to reduce, idealy to the line height i get after pressig shift enter. Seeing as shift enter does not work in lists i have to find an alternate way to reduce this space.


3 Replies

VY Vinothkumar Yuvaraj Syncfusion Team April 19, 2023 08:14 AM UTC

Hi Richard,


To adjust the space between the lines in the Rich Text Editor for the unordered or numbered list, you can utilize the following style. Please refer to the code snippet below for guidance.


<style>

    .e-richtexteditor .e-rte-content .e-content li, .e-richtexteditor .e-rte-content .e-content ul {

        margin-bottom: 3px;

    }

</style>


Regards,

Vinothkumar



RK Richard Kellermeir April 19, 2023 09:06 AM UTC

Thank you, worked like a charm.



VY Vinothkumar Yuvaraj Syncfusion Team April 20, 2023 05:41 AM UTC

Hi Richard,


We are glad to assist you.


Loader.
Live Chat Icon For mobile
Up arrow icon