| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Dec 2005
Location: Leeds
Posts: 56
|
Page jumps
Has anybody encountered a problem with CSS styled pages which uses the margin:auto command to centre the page and the entire contents jump a few pixels to the left when the content of the page extends longer than the length of the browser window? |
|
|
|
|
|
#2 (permalink) | |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,555
|
Quote:
It's when the browser adds the scrollbar. Add html { height: 100%; } (i think it is) to always have the scrollbar and you avoid the jump |
|
|
|
|
#3 (permalink) | |
|
Registered User
Join Date: Dec 2005
Location: Leeds
Posts: 56
|
Quote:
Excellent! Cheers for the quick response |
|
|
![]() |