Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<style>
:root {
margin: 0px;
}
#spacer {
height: 100vh;
width: 100px;
}
#top_box {
width: 100px;
height: 60vh;
background-color: blue;
}
#middle_box {
width: 100px;
height: 60vh;
scroll-start-target: auto;
background-color: purple;
}
#bottom_box {
width: 100px;
height: 60vh;
background-color: yellow;
}
#fragment_target {
width: 100px;
height: 100px;
background-color: red;
}
</style>
<div id="top_box"></div>
<div id="middle_box"></div>
<div id="bottom_box"></div>
<div id="spacer"></div>
<div id="fragment_target">Fragment Target</div>
</body>
</html>