Skip to content

Truly independent web browser

523 B
Raw Blame
<!DOCTYPE html>
<style>
    body { margin: 0; }
    #cb { position: relative; width: 300px; height: 300px; }
    #container { width: 200px; height: 100px; overflow: hidden; }
    #anchor { margin-top: -10px; width: 20px; height: 20px; background: gray; }
    #spacer { height: 500px; }
    #target { position: absolute; top: 10px; left: 0; width: 20px; height: 20px; background: green; }
</style>
<div id="cb">
    <div id="container"><div id="anchor"></div><div id="spacer"></div></div>
    <div id="target"></div>
</div>