- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
how to change select tag hover default background color
Any chance you can give us a little more information about what you need? Show us an example maybe, or what you have tried so far?
is this possible to style hover select option
option:hover{background-color:#000;}
not works for me
Support for modifying <select>
is pretty poor. There are ways to change the highlight color in Firefox, by adding a box-shadow
to the CSS for option:hover
but this is browser-specific.
Unfortunately your best option is probably replacing the <select>
box entirely via some pseudo-construct, if it is essential to you that you override the browser defaults.
You could set the hover to a div by giving it a unique ID, why not just add an ID to the desired element?
divID:hover {
background-color: xxxx;
}
thank you all
try this
select:hover {
color: #444645;
background: #ddd;
}