views:

382

answers:

1

I'm using the following in my CSS to force a vertical scrollbar in Firefox:

body {
  overflow-y: scroll;
}

Does this technique work in Safari and Opera? Some people say it does and some say otherwise.

+1  A: 

The CSS rule overflow-y: scroll works for me in:

  • Opera 10.10
  • Google Chrome 3.0.195.38
  • Mozilla Firefox 3.5.6

and obviously all versions of Microsoft Internet Explorer where the scrollbar is always shown.

Safari and Google Chrome are using the same view engine, so chances are it works in Safari as well :)

Jørn Schou-Rode
Thankyou very much, nice to know that it works in Chrome too - forgot about that one! I can always test this out on a friends Mac but I'm fairly confident, from what you've said, that it will work fine. Thanks again.
stephenmurdoch