Am 30.03.2011 09:25 schrieb PL:
Bob,
I am indebted to you for this bit of information! Thank you. It solved
the problem so easily that I am amazed. I had never heard of this, but
googled it to see what it was.

I dropped some code onto the bottom of my css sheet without really
understanding where to put it or format it, but it doesn't seem to
matter, it works.

html, body { height: 100%; margin: 0 0 1px; padding: 0; }

But I will do a bit of research to discover what this is all about.

It is not too complicated:
- When there is a scrollbar, it takes about 16px width, so it reduces the width of the viewport (the inner dimensions of the browser window). Thus, a page which is centered will move about 8px to the left compared to a page with no scrollbar. - The CSS rules you provide give the page a height of 100% of the viewport, + a margin of 1px, which makes a total height of 1px more than the viewport height. Like that you force a scrollbar even if there would be none necessary.
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to