Update
You can (in addition) include -ms-overflow-y and / or -moz-scrollbars-vertical , as stated in fooobar.com/questions/462414 / ... :
html { overflow: -moz-scrollbars-vertical; -ms-overflow-y: scroll; overflow-y: scroll; }
Original
html { overflow-y: scroll; }
See "overflow-y" at W3Schools
Tested and verified (successfully) in:
- Ff 7
- Chrome 15
- IE 5 + 6 + 7 + 8 + 9 + 10 (platform preview) w / IETester
- Opera 11.52
- Safari / Win 5.1.1
Full example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> html { overflow-y: scroll; } </style> </head> <body> Test content </body> </html>
source share