H
H
hollolo2019-12-03 19:03:07
css
hollolo, 2019-12-03 19:03:07

Why does the scroll stay in place when filling the page?

If at the bottom of the page with dynamic content there is an element with , then the scroll remains in place when filling the page. Demo: https://codesandbox.io/s/react-53278 Scroll to the center of the red box and hit add a few times , then hit toggle absolute and add again Why is this happening? How to make the behavior the same as without ? position: absolute; bottom: 0


position: absolute; bottom: 0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hollolo, 2020-11-05
@hollolo

overflow-anchor: none;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question