Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to style (change color) the default 'please select' option? #91

Open
stratboy opened this issue Jan 18, 2023 · 0 comments
Open

How to style (change color) the default 'please select' option? #91

stratboy opened this issue Jan 18, 2023 · 0 comments

Comments

@stratboy
Copy link

stratboy commented Jan 18, 2023

Hi, I don't know if this thing depends on your script, or it's just a browaser thing. Anyway I try to ask. The 'please select' option shown, is black. I would need to change it's color, but it seems it doesn't work, even if the style is detected by console. For example:

form select.crs option:first-child {
  color: #dc2020 !important;
}

This is applied, but doesn't show red. I really can't understand why. Could you point me to the right direction?

Schermata 2023-01-18 alle 14 05 14

Attaching an image only to exmplain the reason why I need to chage the color: simply the rest of the form has lighter grey labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant