Changing background color on hover

I have an element with the data-id and all I want to do is change it’s color on hover. I have written this code but it’s not working any ideas folks?

  background-color: rgb(255,255,255);
1 Like

just add !important after the Css value to overwrite the existing style.

The code then should looks like this:

  background-color: rgb(255,255,255)!important;
1 Like

thank you thank you thank you!!

Hey, does this also work for .svg’s that are links. This is my code.

data-id=“63ca92185421d1001b598bd2” :hover{
fill: #FCB6D9; !important;

WTF! i can’t paste the whole code because the stuff inside brackets isn’t showing. This is sooo annnoying. Never spent so much time trying to figure out how to do something that should be so simple. But I do have brackets before “data-id” and after the data id ".

should work the same, yes. but as te svg is embed in this data-id container you have to get the svg div, which is probably a child of it.

The color of a svg you also can fill or change via the “filter” css setting.
this adds a filter, that changes the color of it. you can get the exact filtersettings via this generator:

Ah sick! Thanks for the pro tip. Out of the office now but will take a stab at this tomorrow! Thanks NeueMeta!

Hey man. The link below is a screenshot of my code. Maybe if you have a second you could tell me which exact div or whatever I should target. Sorry, don’t know much of the lingo which makes it hard to search what to look for.

try to adress it only with css like:

svg {
fill: #FFF;
filter: brightness(0) saturate(100%) invert(36%) sepia(58%) saturate(2070%) hue-rotate(334deg) brightness(124%) contrast(104%)
color: red;