Username
Password
Are you new? Sign up now
I’ve forgotten
Home
:.
Downloads
:.
Articles
:.
Projects
:.
Reviews
:.
Forums
:.
Arcade
:.
Klikcast
:.
GOTW
The Daily Click
::.
Forums
::.
Non-Klik Coding Help
::.
Force scrollbar in html/css
Post Reply
Post Oekaki
Posted By
Message
Chris Burrows
Registered
14/09/2002
Points
2396
19th June, 2012 at 19/06/2012 18:25:32 -
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.
Any ideas?...
n/a
Sketchy
Cornwall UK
Registered
06/11/2004
Points
1971
20th June, 2012 at 20/06/2012 16:47:08 -
Add this to your css file:
html
{
overflow-y: scroll;
}
...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;'>
n/a
Chris Burrows
Registered
14/09/2002
Points
2396
22nd June, 2012 at 22/06/2012 03:01:50 -
Thanks again Sketchy.
n/a
Post Reply
1
All
Advertisement
Worth A Click