<!DOCTYPE html> | |
<title>CSS Test Reference</title> | |
<p>You should see a green square below</p> | |
<div id="scroller" style="overflow:auto;width:400px;height:200px"> | |
<div style="height:200px"></div> | |
<div style="width:200px;height:200px;background:green"></div> | |
<div style="height:300px"></div> | |
</div> | |
<script> | |
scroller.scrollTop = 200; | |
</script> |