-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to set line-spacing #1190
Comments
See RichTextFX CSS Reference Guide, and try: .paragraph-text {
-fx-line-spacing: <number>;
} |
The problem seems to be that the "styled-text-area.css" file inside the richtextfx jar file overrides any user css settings. Then use the following in your CSS file and it should work: .paragraph-text {
-fx-line-spacing: 20;
} |
Here's a better work-around: codeArea.setId( "myarea" ); #myarea .paragraph-text {
-fx-line-spacing: 10;
} Explanation: CSS is applied from least specific to most specific, with the most specific selector overriding the lesser. |
Thank you Jugen, I'll try it after get off work. |
Expected Behavior
Line-spacing to bigger
Actual Behavior
no change
Reproducible Demo
Provide a demo that maintainers of this project can copy, paste, and run to reproduce it immediately.
Use the following template to get started.
styles
Environment info:
How should I modify line-spacing?
The text was updated successfully, but these errors were encountered: