CSS option selected?

Marc van Leeuwen

Premium Member
Joined
May 29, 2016
Messages
1,132
Points
63
Hi everyone, please tell me if there is a way to css style the "selected" option from a list?

It's like, I have a city or name list in a drop down box selection, with a fixed color is gray. But this size only applies to the ones that are not selected. Once you select any option, the color becomes different, for example, it should be red.

Is there a solution for that?

Thanks in advance!
 
Older threads
Replies
8
Views
7,321
Replies
5
Views
16,115
Replies
9
Views
9,139
Newer threads
Replies
12
Views
8,416
Replies
7
Views
6,206
Replies
4
Views
2,487
Latest threads
Replies
0
Views
29
Replies
0
Views
31
Replies
1
Views
39
Replies
3
Views
96
Recommended threads
Replies
2
Views
5,424
Replies
1
Views
2,118
Replies
2
Views
3,052
Replies
6
Views
5,089
Top