Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Custom scroll-bar?

Hi everyone,

If I wanted to customize my scroll-bar with Css, how would I do that? Is it even possible? I´d like to change the scroll-bar on a website I´m working on (http://insider.harwindesigners.nl/dekruidendokter/2.0/page.html)

Thanks for the help!

3 Answers

I have never tried to customize a scroll bar, but it can be done. take a look at the blog below:

https://css-tricks.com/custom-scrollbars-in-webkit/

I hope this is what you were looking for.

ayezee33
ayezee33
16,096 Points

Yes that article that Jacob linked is awesome. I used it a while ago for a project.

Wanted to add one thing to remember is to include vendor prefixes. Each browser will need to have code associated with it's scrollbar.

Thanks for the help guys! The article explains it al thanks.

Glad I could help!