...

View Full Version : My body is jumping!



daemonkin
09-14-2007, 04:17 PM
Hi I am using the following:



body {
width: 768px;
margin: 5px auto 0;
padding: 0;
font: 0.8em Tahoma,Arial,Helvetica,sans-serif;
}


to center my content in the middle of the browser window.
Whenever my content runs longer than the window, a scrollbar appears and shunts the body to the left slightly

Is there a quick and easy way to correct for this?

Thanks.

D.

ahallicks
09-14-2007, 04:20 PM
html {
height: 100.01%;
}

Will display the scroll bar all the time to stop this 'jumping effect'. Notice I refrained from any jokes about getting off the trampoline ;)

daemonkin
09-14-2007, 04:33 PM
Yes I was waiting for that backlash!
Will try it.

D.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum