First of all, I think you misunderstood what viewport is. The viewport is the area that the browser uses to render web pages, and you can in no way create your own websites to override this area in any way.
Secondly, it seems that the reason your overlay-div will not cover the entire viewport is because you need to remove all the fields in BODY and HTML.
Try adding this to the top of your stylesheet - it resets all fields and paddings for all elements. Makes further development easier:
* { margin: 0; padding: 0; }
Edit: I only better understood your question. Position: fixed; will probably work for you, as Jonathan Sampson wrote.
Arve Systad May 17 '10 at 20:00 2010-05-17 20:00
source share