body {
overflow-anchor: none;
}Overview of scroll anchoring / notebook
Overview of scroll anchoring
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
.container {
overflow-anchor: none;
}