A
A
Alexander Shtang2016-01-12 14:43:15
JavaScript
Alexander Shtang, 2016-01-12 14:43:15

How to move the map through a div on top of this map (and scroll to)?

At the same time, the div does not move relative to the screen and remains in the center.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2016-01-12
@Enclave88

https://css-tricks.com/almanac/properties/p/pointe...
but not much support.

A
Anton Shcherbakov, 2016-01-12
@WestTrade

https://jsfiddle.net/es7t1xob/

.bl {
position: fixed; 
z-index:999;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin: -50px 0 0 -50px;
background-color: black;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question