Dave's Brain

Browse - Programming Tips - I am using overflow: -moz-scrollbars-vertical; but Firefox is not

Date: 2009feb27
Platform: web
Warning: This option has changed

Q.  I am using overflow: -moz-scrollbars-vertical; but Firefox is not
displaying a vertical scrollbar.  Why?

A.  It seems that with the regular Windows XP theme it does
not display the scroll bar when the textarea has 2 rows.
This is not a problem when using Windows Classic theme.
The solution is to make the font a bit bigger.

<style> textarea { overflow: -moz-scrollbars-vertical; overflow-y: scroll; } </style> <textarea cols=40 rows=2 style="font-size:13px">Has NO scrollbar in Windows XP theme</textarea> <textarea cols=40 rows=2 style="font-size:14px">Has scrollbar in Windows XP theme</textarea>

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.