Alexander Stolte Expert Licensed User Longtime User Jul 19, 2022 #1 This code does not work: B4X: CSSUtils.SetStyleProperty(TextArea1, "-fx-padding", "0 0 0 0") How can i set the padding to 0 on the TextArea? Example project is attached Attachments TextArea Padding.zip 3.3 KB · Views: 146
This code does not work: B4X: CSSUtils.SetStyleProperty(TextArea1, "-fx-padding", "0 0 0 0") How can i set the padding to 0 on the TextArea? Example project is attached
Alexander Stolte Expert Licensed User Longtime User Jul 20, 2022 #3 but i don't use B4Xdialog in the project... Upvote 0
LucaMs Expert Licensed User Longtime User Jul 20, 2022 #4 Alexander Stolte said: but i don't use B4Xdialog in the project... Click to expand... Maybe some other CSS. Upvote 0
Alexander Stolte said: but i don't use B4Xdialog in the project... Click to expand... Maybe some other CSS.
TILogistic Expert Licensed User Longtime User Jul 20, 2022 #5 TEST B4X: Dim MyCss As String = $"-fx-border-width: 0; -fx-border-insets: 0; -fx-border-color: transparent; -fx-background-insets: 0;"$ TextArea1.Style = MyCss Ref: JavaFX 2.0 CSS Styling Part 1 I saw a lot of forums that some people are having big problems with CSS and am not sure why. Am not CSS expert but i have learned css with javaFX I did not know how to use it before i met javaFX, i… jojorabbitjavafxblog.wordpress.com Upvote 0
TEST B4X: Dim MyCss As String = $"-fx-border-width: 0; -fx-border-insets: 0; -fx-border-color: transparent; -fx-background-insets: 0;"$ TextArea1.Style = MyCss Ref: JavaFX 2.0 CSS Styling Part 1 I saw a lot of forums that some people are having big problems with CSS and am not sure why. Am not CSS expert but i have learned css with javaFX I did not know how to use it before i met javaFX, i… jojorabbitjavafxblog.wordpress.com
Alexander Stolte Expert Licensed User Longtime User Jul 20, 2022 #6 Unfortunately padding is still present Upvote 0