Force right Scrollbar
Sometimes it is important to show a right scrollbar whether the page is full or not.
e.g.: If you have a page which loads content per ajax after the html page is loaded, the whole page may move to the left when the scrollbar appears.
So the best thing to do here is force the scrollbar.
Use this stylesheet to enable this:
<style type="text/css">
body {
overflow-y: scroll;
}
</style>
Use
overflow: scroll;
If you want to force both scrollbars, vertical and horizontal.
Keine Kommentare bisher