Does anybody know here how to make scroll bars more trendy if i use overflow:scroll property. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Does anybody know here how to make scroll bars more trendy if i use overflow:scroll property.

making scroll bars more trendy

7th Aug 2017, 12:55 PM
Junaid Shah
Junaid Shah - avatar
4 Answers
+ 3
You cannot style scroll bars, as they are not part of your html content but of browser/os... All the more that you can do is to force hide them, and next write your own scroll handler (on desktop user can only scroll with mousewheel, on mobile they can do scroll by swipe gesture, but nothing will visually indicates that there's a scrollable area ^^ (and write this kind of handler is not an easy gol to reach ;P)
7th Aug 2017, 1:21 PM
visph
visph - avatar
+ 2
There are css selecters for it. But as far as I know, they will only work on chrome or chromium based browsers. Firefox doesn't support them.
7th Aug 2017, 1:06 PM
Salekin
Salekin - avatar
0
Any alternative then i mean any plugin or frameworks that will make those scrollable boxes look good
7th Aug 2017, 4:37 PM
Junaid Shah
Junaid Shah - avatar
0
Give this code snippet a try. You can change the css to design differently https://codepen.io/GhostRider/pen/GHaFw
7th Aug 2017, 5:57 PM
Salekin
Salekin - avatar