M
M
Maxim Korolsky2017-07-25 09:19:03
css
Maxim Korolsky, 2017-07-25 09:19:03

What solution to use in order to fix a block in another block?

fa18e22d6400472a93923a116fb601cd.png
There is such a task, to fix the block, so that when it scrolls to it, it becomes fixed
AND rides within the framework of another block, while reaching a certain point (conditionally the basement) it sticks to it
After which we scroll up it again comes off
The fact is that in the basement there can be a different number of elements
I already tried to count relative to the window, relative to the block in which it travels
But something breaks all the time
Are there any solutions or plugins ^ Maybe someone has already done this
Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Miranovich, 2017-07-25
@aleks_664

position: sticky
But low browser support so use
wd.dizaina.net/en/scripts/stickyfill

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question