How to Change Style of Scrollbar using Tailwind CSS ?

palchandu_dev

Chandra Prakash Pal

Posted on March 1, 2024

How to Change Style of Scrollbar using Tailwind CSS ?

/* global.css */

@tailwind base;
@tailwind components;
@tailwind utilities;

/* width */
::-webkit-scrollbar {
width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}

All Credit goes to Geeks for geeks. Mentioning here the post url.

https://www.geeksforgeeks.org/how-to-change-style-of-scrollbar-using-tailwind-css/

💖 💪 🙅 🚩
palchandu_dev
Chandra Prakash Pal

Posted on March 1, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related