T
T
Toy Boy2021-04-29 10:02:13
OctoberCMS
Toy Boy, 2021-04-29 10:02:13

Why doesn't the painting of the icon work on hover?

CSS prescribed that when hovering, the color changed through Fill. I loaded it in October and now it does not work (How to be .........

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Il'ia Kartovitskii, 2021-04-29
@kartovitskii

Perhaps it was worth giving an example of CSS and SVG code in your question.
It works like this:

.icon:hover {
    fill: red;
}

<svg class="icon">
    ...
</svg>

And most likely, if everything is done correctly, but it doesn’t work inside your site, it means that either the styles are reassigned somewhere, or they are not connected at all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question