-----Original Message----- From: css-d-boun...@lists.css-discuss.org [mailto:css-d-boun...@lists.css-discuss.org] On Behalf Of David Hucklesby Sent: Friday, July 22, 2011 3:38 PM To: css-d@lists.css-discuss.org Subject: Re: [css-d] question on space at bottom of page
On 7/22/11 4:48 AM, Markus Ernst wrote: > Am 21.07.2011 15:44 schrieb Alan Gresley: >> Out of curiously, can you please tell me what the following CSS is for. >> >> /* To prevent jumping */ >> html { >> min-height: 100%; >> margin-bottom: 1px; >> } > > I have seen this before as a recommendation how to force a scrollbar, > in order to prevent centered contents from moving 8 pixels > horizontally when navigating between pages with and without scrollbars. Yup. This works, too: html { overflow-y : scroll; } -- Cordially, David While David's solution does work, it causes a validation error. So, I've been using the following code: html { height: 100.2%; } Gail ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] 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/ ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] 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/