scrollbar
Style the scrollbar with css in Google Chrome (-webkit)
Here is an example that works: ::-webkit-scrollbar { height: 12px; width: 12px; background: #000; } ::-webkit-scrollbar-thumb { background: #393812; -webkit-border-radius: 1ex; -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75); } ::-webkit-scrollbar-corner { background: #000; } Or you can use jScrollPane.
Hidden scrollbars in Firefox (allows scrolling but just no scrollbar)
You must wrap your scrollable div in another div with overflow:hidden that hides the scrollbar. See http://jsfiddle.net/qqPcb/ for an example. BTW: The same technique is used by a nice little jQuery plugin called jScrollPane
Apple Style Scrollbar WPF
It’s not very pretty and in all honesty I can’t remember where it came from, there is something similar to what you’re after in one of my project here, there is probably a lot in the style that’s not required or is incorrect but may as well give it a shot. <!–Scrollbar Thumbs–> <Style x:Key=”ScrollThumbs” … Read more
How do I add a margin to a CSS webkit scrollbar? [closed]
There’s yet another solution which might fit easily in everybody’s project. If you use a transparent border as a margin and a box-shadow with inset to set it’s color, you’d get the result you are hoping for. For instance: ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { box-shadow: inset 0 0 10px 10px green; border: solid … Read more
Lion-like scrollbar with jQuery?
Interesting stuff, I wrote a plugin that does just that. It’s called LionBars.
Detect when window vertical scrollbar appears
Sorry to bring this back from the dead but I have just run in to this limitation and came up with my own solution. It’s a bit hacky but stick with me … The idea is to add a 100% width invisible iframe to the page and listen for resize events on it’s internal window. … Read more
Safari/Chrome (Webkit) – Cannot hide iframe vertical scrollbar
I just ran into this problem, and discovered that the fix was to set overflow: hidden on the HTML tag of the page inside the iframe.
Vertical Scrollbar leads to horizontal scrollbar
Just figured out a pretty passable solution (at least for my version of this problem). I assume the issue with width: auto is that it behaves similarly to width: 100vw; the problem is that when the vertical scrollbar appears, the viewport width remains the same (despite the ~10px scrollbar), but the viewable area (as I’m … Read more
How can I disable a browser or element scrollbar, but still allow scrolling with wheel or arrow keys?
Like the previous answers, you would use overflow:hidden to disable the scrollbars on the body/div. Then you’d bind the mousewheel event to a function that would change the scrollTop of the div to emulate scrolling. For arrow keys, you would bind the keydown event to recognize an arrow key, and then change scrollTop and scrollLeft … Read more