Skip to content

Instantly share code, notes, and snippets.

@pepelsbey
Created February 28, 2012 18:12
Show Gist options
  • Save pepelsbey/1934050 to your computer and use it in GitHub Desktop.
Save pepelsbey/1934050 to your computer and use it in GitHub Desktop.
Untitled
BODY {
margin:0;
padding:0;
}
DIV {
height:50px;
background:#888;
}
<script>
for(var i=0; i<=1000; i++) {
var div = document.createElement('div');
div.style.width = i/10 + '%';
document.body.appendChild(div);
}
</script>
{"view":"split","seethrough":"","prefixfree":"1","page":"result"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment