Are there any libraries or methods to implement the precise positioning of the elements?

Good evening!

I need to give the svg and img at each other with millimeter accuracy).

On one site which already implemented the same interactive map, I saw a strange behavior. Can be made with CSS, and maybe JS.

So, if you reduce the page size, the following data is automatically settling to the desired:

overflow: hidden; */
 /* position: relative; */
 /* left: 0.65625 px; */
 /* width: 1578.67 px; */
 /* height: 888px; */


How can I implement this?

Thank you!
June 3rd 19 at 19:02
1 answer
June 3rd 19 at 19:04
Solution
Svg positioning is generally not required, you can apply pattern svg mask svg and the effect is correct if the viewbox is the same as in css absolute

Find more questions by tags Layout