K
K
Kirill2018-03-10 13:36:44
JavaScript
Kirill, 2018-03-10 13:36:44

How to position a div next to an svg object?

Hello! pliz tell me how to solve the problem, there are objects that are displayed on the svg map at x and y coordinates, you need to place a container with position: absolute next to it; actually the problem is that svg do not have css coordinates and .offset() .position() does not apply, and if I set top, left to my container when scaling accordingly, it leaves, it is possible to set the object and container the same class or ID for communication, but with the help of which stick them together?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question