Yashar
Yashar

Reputation: 2723

Different borders on each side of a TextField

How can I change a textfields borders color in a way that two vertical borders have a same color and two horizontal borders have a same color using CSS?

Is there any way to make four border lines have four different color?

Thanks

Upvotes: 2

Views: 1753

Answers (1)

Tomas Mikula
Tomas Mikula

Reputation: 6537

You can specify 4 values in -fx-border-color, and they will be the colors of the top, right, bottom and left border, respectively.

-fx-border-color: red green blue yellow;

See -fx-border-color in JavaFX CSS reference.

Upvotes: 2

Related Questions