Are you new? Sign up now
The Daily Click
Non-Klik Coding Help
Force scrollbar in html/css
19th June, 2012 at 6/19/2012 6:25:32 PM -
I'm working on a webpage and I'd like there to always be a vertical scrollbar visible on the window. Even when the page height does not exceed the window height... So I guess the scrollbar would be "disabled" in those cases, but still visible.
20th June, 2012 at 6/20/2012 4:47:08 PM -
Add this to your css file:
...or if you're not using CSS for some reason, you could add the style to your opening HTML tag instead:
<html style='overflow-y: scroll;'>
22nd June, 2012 at 6/22/2012 3:01:50 AM -
Thanks again Sketchy.
Worth A Click