|
Post by ✈ATELIER on Jul 31, 2014 8:55:08 GMT -8
Ey, I was wondering how one alters/stylises the scrollbar in post templates? Could anyone articulate for me?
|
|
|
Post by beekeeper on Jul 31, 2014 10:52:23 GMT -8
[newclass=.classname::-webkit-scrollbar]width: 0px; background: #000000;[/newclass] [newclass=.classname::-webkit-scrollbar-thumb]width: 0px; background: #000000;[/newclass]
that's how i do it
first one is for the scrollbar background - if you take out the background attribute it'll be transparent second one is for the thumb, you can also add border radius if you want it rounded
|
|
|
Post by ✈ATELIER on Jul 31, 2014 12:11:21 GMT -8
Amaing, beekeeper! And for the .classname, can I type in any name (to prevent it from interfering with others scroll templates?) and it work? Or would this be fine as is? Also, should I give you credit for the code? xD (Awkward question, I know. orz)
|
|
|
Post by beekeeper on Jul 31, 2014 12:35:17 GMT -8
yep classname would correspond to the div that you want the scrollbar for, which should probably be a unique name
and you'd need to set the colours and width yourself, it's just a base so no need to credit
|
|