Posted By

paul66 on 01/27/11


Tagged

css browser scrollbar vertical


Versions (?)

Force scrollbar


 / Published in: CSS
 

Sometimes, pages can be shorter than the browser view-port, and when you load a page on the same site that has longer content and uses a scrollbar, content can jump side to side. By forcing a scrollbar no matter the height of our content, we stop this small, but annoying issue.

  1. html { overflow-y: scroll; }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Some0ne on January 27, 2011

Though thats a way it dosen't validate :(

I personally use:

html { height:100%; padding-bottom:1px; }

You need to login to post a comment.