Reputation: 5200
Is there a way using css to hide a scrollbar while still keeping its functionality? Even make it transparent or the same color of the background will be fine. Do I have to do this in JavaScript?
Upvotes: 8
Views: 24608
Reputation: 8869
.className {
overflow: auto;
overflow-y: hidden;
}
The user will have to scroll using the mouse wheel I believe
Compatible with IE too...
Upvotes: 6
Reputation: 6690
<div style="width: 500px; height: 500px; overflow: hidden;"></div>
Source: http://www.w3schools.com/css/pr_pos_overflow.asp
Upvotes: 2