How To Add Padding Between StyledTextArea And Text Contents?
See original GitHub issueI have tried the obvious:
styledTextArea.setPadding(new Insets(10, 10, 10, 10));
but it doesn’t seem to work. What is the correct way to add padding between a StyledTextArea
and the textual content that it displays?
Issue Analytics
- State:
- Created 7 years ago
- Comments:30 (14 by maintainers)
Top Results From Across the Web
RichTextFX StyleClassedTextArea padding - Stack Overflow
Give more height to StyleClassedTextArea, and try different values for padding. Share. Share a link to this answer.
Read more >How to Set Text Spacing and Placement in CSS | Webucator
Learn how to set text spacing and placement in the following steps. The letter-spacing property is used to specify the amount of space...
Read more >padding - CSS: Cascading Style Sheets - MDN Web Docs
An element's padding area is the space between its content and its border. Note: Padding creates extra space within an element.
Read more >CSS Text Indentation and Spacing - W3Schools
The word-spacing property is used to specify the space between the words in a text. The following example demonstrates how to increase or...
Read more >I have troubles with a Styled TextArea and tabs - #21 by ...
In that exception file, I have to create, edit and save the rtf (to date, ... “Margin” means the distance from the edge...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am now using an
InlineCssTextArea
and removed all style settings, except for padding defined in a CSS file, still no luck 😦.@gbmhunter I will tell you what I am using.
CSS (Important:
:first-paragraph
must be styled after:last-paragraph
rule!):Java (simplified):
Result: