Hover background color issue of a button
Hover background color issue of a button
Hi,
Here is my running example. I would like to add a background color both on 'All' and 'None' buttons (dropdown items of 'Row selection') when hover over. As you can see, it works good for 'None' button BUT:
1. Background color of 'All' button does not change
2. Once 'None' is selected, then the background color is removed
Any idea or suggestion about how I can fix these, would be very helpful!
Thank you in advance
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It isn't working as your background colour is being overridden by another style from our stylesheet. Add
!important
to make your own colour take priority.http://live.datatables.net/mopebula/3/edit
The MDN documentation on specificity is excellent if you want to understand this topic a bit more.
Allan