David Caunt

PHP and Zend Framework Engineer

Subscribe to my RSS feed

Posts Tagged ‘ux’

Avoiding Firefox ’screen jumping’ when scrollbars are displayed

September 15th, 2009

I recently discovered a simple way to improve the experience of Firefox users when navigating through a website. When a document is longer than the viewport, Firefox will display a vertical scrollbar, but when the document is shorter the scrollbar is not displayed. Constant toggling of the scrollbar is jarring to users and often gives the illusion that your pages are not consistently designed.

Fortunately there’s a fix which means the scrollbar is always displayed. Simply add this to your css:

html {
    overflow-y:scroll;
}

Top