D
D
Dealaxer2017-08-07 14:41:16
css
Dealaxer, 2017-08-07 14:41:16

Under transparent places of the SVG container to use links?

Welcome all!
Folks, the question is, there is an SVG object on an HTML page, in the form of a curved wave: the
cf7d633c0ad746fcaaa6fb3cb688367d.jpg
container has its own length and width (highlighted in red), the object has a blue background and transparency around it.
Below is a link with a background.
But the link does not work under SVG whatever one may say.
If you use z-indexes, then the yellow background will be over the blue and the link will work.
What I want is for the yellow background to remain under the blue, and for the link itself to be above the SVG.
Something has already broken the brain how to do.
Is it possible to apply a mask to the SVG so that the transparent area is available?
What people have any ideas?
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2017-08-07
@Dealaxer

pointer-events: nonefor svg
https://webref.ru/css/pointer-events

E
Eugene, 2017-08-07
@deworkers

Container with background under svg (z-index: -1). A link to a container with no background above the svg (z-index: 10). But something tells me that this is a fierce crutch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question