This will be pretty close to what you're looking for it sounds like: jsFiddle.
I actually only changed one thing: to height: 100%
height:100vh
.
div {
padding: 0px;
margin: 0px;
border: 0px;
height: 100vh;
}
vh
is setting it to 100% of the viewport height. It's a new CSS3 unit. Using it just depends on what sort of compatibility you need with it. All major modern browsers support it. And it seems to have pretty good support for a few generations back: caniuse.com.
CSS-tricks.com has a good article about Viewport Height.