I am trying to get a div that is the width and height of a document. Minus 10 pixels around, as in this picture:
http://screensnapr.com/v/a9JWIf.png
But every time I overlay or add to the edge of the body or the outer div, it adds to the overall height of the document and shows the scroll bars.
How can I make a div automatically fill in all available sizes without increasing the size of the document?
edit: any negative fields do not affect the overall size of the divs
Here is the fiddle
http://jsfiddle.net/ZRz32/6/
As you can see, it expands the height of the document. I need the size of the document to not exceed ten pixels.
source
share