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
rr21
6,398 PointsHow to make browser scroll bar track transparent?
The code below is what I currently have but it's hiding the scroll bar completely, I only want the thumb to show and not the rest.
::-webkit-scrollbar {
width: 12px;
display: none;
}
Thanks in advance :)
1 Answer
Greg Kaleka
39,021 PointsYou need a rule that selects just the track. Very straightforward:
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
display: none;
}
Happy coding!
-Greg
rr21
6,398 Pointsrr21
6,398 PointsHey thanks for the reply :),
since posting originally, I tried the above but it's still showing
Greg Kaleka
39,021 PointsGreg Kaleka
39,021 PointsCare to share your code?