Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<div class=spacer style="height: 200px"></div>
<p>There should be a green box attached to the right side of each orange box.</p>
<div class=ex id=ex1><div class=anchor></div><div class=popover></div></div>
<div class=ex id=ex2><div class=anchor></div><div class=popover></div></div>
<div class=spacer style="height: 200vh"></div>
<style>
.ex {
margin: 25px;
font-size: 0;
}
.ex div {
display:inline-block;
width: 100px;
height: 100px;
}
.anchor {
background: orange;
}
.popover {
background: lime;
}
</style>
<script>
document.documentElement.scrollTop = 100;
</script>