K
K
Kirill2016-12-18 22:42:58
SVG
Kirill, 2016-12-18 22:42:58

Why does hover only work when hovering over an svg outline?

maybe a stupid question but google can’t answer me, tell me how to apply hover to the entire object, now it only works when hovering over the object’s outline itself, and if the cursor gets inside, then hover doesn’t work, how to solve this using css?

.item-9 {
  fill: #000000;
  stroke: #000000;
  cursor:pointer;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
A person from Kazakhstan, 2016-12-18
@KirillSPB777

svg is not made with the same layer?
hover must be specified on all layers or on the desired layers, and as a rule it is an id and not a class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question