Forcing Scrollbars

You know when you go to a site and pages change from having less content to more content and they jump around as the scrollbar appears and disappears? Here is a workaround that forces a scrollbar. It will always show, even when you don’t need to scroll, but I find it better than those jumping pages.

Add this line to your css:
html{height:101%}

Out of all the techniques I found on the web, this seems to work the best across all browsers.

Source: http://www.hicksdesign.co.uk/journal/forcing-scrollbars-now-even-better

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s