S
S
sweezy2016-10-12 15:08:45
css
sweezy, 2016-10-12 15:08:45

Appearance of the block at the top of the window?

How to implement the appearance of an absolutely positioned element at the top of the window. that is, to calculate in some way the coordinates

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lex, 2016-10-12
bem @bemdev

не пойму в чем проблема, абсолютное позиционирование уже подразумевает родителя в виде всего окна, можно указать напрямую значение top left и тд. если я понял о чем идет речь

S
Sn0wSky, 2016-10-12
@Sn0wSky

If I understand everything, then through position: absolute
And when opening, write
Well, add an indent from the top of the screen.
Then the modal window will appear in the place where you called it, and when scrolling, it will remain in the same place.
https://jsfiddle.net/2x1qmg9q/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question