I
I
iskander_velikiy2020-10-26 22:58:49
css
iskander_velikiy, 2020-10-26 22:58:49

Why in the google chrome browser the added elements in the block go up when in mozilla firefox go down?

Question: When I add new DOM nodes to some block, browsers behave differently. In Firefox, the added elements go down and drag the button with them, when in google chrome the button remains in place, but the new elements go up, which in my opinion is extremely inconvenient...
Tell me, what do you do in this case?
https://jsfiddle.net/uchenik/89mzd2yo/8/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2020-10-27
@iskander_velikiy

This wonderful Google invention is called Scroll anchoring . To disable, add to CSS:

body {
  overflow-anchor: none;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question