DEV Community

Cover image for Custom ScrollBars
Gaurish Sethia
Gaurish Sethia

Posted on • Edited on

4 2

Custom ScrollBars

Well,

So in my early stages of web dev, I built a few websites that had very long pages, I was into a big thought that this kinda you know the grey scroll bar sucks because it was grey and my whole design being good and this scroll bar grey made me customize the scrollbar.

I searched on google how to do it and i hardly found any.

So i would like to help beautiful people who came here with this code snippet.
Enjoy!

body::-webkit-scrollbar {
  /* Required for Base of the bar for basically for setting the width ;)  */
}

body::-webkit-scrollbar-track {
  /* the "track" of the bar, For Customizing The Background! */
}

body::-webkit-scrollbar-thumb {
  /* the actual draggable element! */
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Playwright CLI Flags Tutorial

5 Playwright CLI Flags That Will Transform Your Testing Workflow

  • --last-failed: Zero in on just the tests that failed in your previous run
  • --only-changed: Test only the spec files you've modified in git
  • --repeat-each: Run tests multiple times to catch flaky behavior before it reaches production
  • --forbid-only: Prevent accidental test.only commits from breaking your CI pipeline
  • --ui --headed --workers 1: Debug visually with browser windows and sequential test execution

Learn how these powerful command-line options can save you time, strengthen your test suite, and streamline your Playwright testing experience. Practical examples included!

Watch Video 📹️

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay