Tuesday, February 10, 2009

Removing the Firefox Scroll Bars

I was developing for a MID (Mobile Internet Device) and needed to remove the vertical scroll bar of Firefox, the default browser, because of the page shift that happens when viewing a long page. MID supports touch so scrolling doesn't require the vertical scroll bar.

The solution is a simple CSS rule:

<body style="overflow:hidden">