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
9/14/2002
Points
2396
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.
Any ideas?...
n/a
Sketchy
Cornwall UK
Registered
11/6/2004
Points
2496
20th June, 2012 at 6/20/2012 4:47:08 PM -
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
9/14/2002
Points
2396
22nd June, 2012 at 6/22/2012 3:01:50 AM -
Thanks again Sketchy.
n/a
Post Reply
1
All
Advertisement
Worth A Click