John Davidson

php - TYPO3 CKEditor : reduce the space between 2 lines

0 comments
Message:


I am using CKEditor for my text content and I want to know how to reduce the space between 2 lines?
When I write content and press enter to go to next line I get a big space Like I pressed enter 2 times


thanks you for helping



My Answer:
To reduce the space between two lines in TYPO3 CKEditor, you can use the following CSS code:

css
p {
margin-bottom: 0.5em; /* Adjust the value as needed */
}


You can add this CSS code to your TYPO3 theme's stylesheet or directly in the CKEditor configuration. This will reduce the space between paragraphs in your content.

Alternatively, you can also use the line-height property to adjust the spacing between lines:

css
p {
line-height: 1.2; /* Adjust the value as needed */
}


Again, you can add this CSS code to your TYPO3 theme's stylesheet or directly in the CKEditor configuration to reduce the space between lines in your content.

Rate this post

3 of 5 based on 1348 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us