In the polyline tag, is there any attribute to overlap one area in the other? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

In the polyline tag, is there any attribute to overlap one area in the other?

I made a code putting the attribute in the polyline and div tags, as in the div the "z-index" attribute works, I tested the same for polyline but it did not work. https://code.sololearn.com/W5IBYYaeLX62/?ref=app

13th Aug 2018, 11:03 PM
JosƩ Guilherme
JosƩ Guilherme - avatar
3 Respostas
+ 2
In SVG, the order the objects determines the objects appear in the document, cannot be overridden by z-index. Rearrange the order or append <use xlink:href="#svg_area1" /> as the last svg object https://code.sololearn.com/W36SpUC7udF2/?ref=app
14th Aug 2018, 12:17 AM
CalviÕ²
CalviÕ² - avatar
+ 2
For use xlink namespace you have to declare it... At example you can: <svg xmlns="http://www.w3.org/2000/svg"> ....... here you can use xlink </svg>
14th Aug 2018, 7:31 AM
KrOW
KrOW - avatar
+ 1
z-index dont work with svg child elements in svg context.... Childs will be drawed in order (the last child is drawed on top)
14th Aug 2018, 12:18 AM
KrOW
KrOW - avatar