JavaFX: TextArea Custom CSS

Before and after applying this CSS

.text-area {
	-fx-background-color: white;

	/* Shadow effect */
	-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.2), 10, 0, 5.0, 5.0);
}
.text-area .content {
	-fx-background-color: white;
	-fx-background-insets: 0;
	-fx-background-radius: 0;
}
.text-area:focused .content {
	-fx-background-color: white;
	-fx-background-insets: 0;
	-fx-background-radius: 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *