W3 Mind Logo
Home » How to add a custom scroll bar in Webkit Browsers using CSS

How to add a custom scroll bar in Webkit Browsers using CSS

If you want to change the look and feel of the default scroll in Webkit Browsers ie. Chrome, Safari and Microsoft Edge, so you can apply the below CSS properties. This will work across all the Webkit Browsers.

Sometimes we use an element or section on a page in a website which has a scroll attached to it. And it doesn’t match the design of our website because of its default look and feel.

But now with the help of CSS3, you can change the look and feel of the scroll of a webkit browser.

				
					::-webkit-scrollbar {
  -webkit-appearance: none;
}

::-webkit-scrollbar {
  width: 10px;
}
 
::-webkit-scrollbar-track {
  background: #bfbcba;
  border-radius:5px
}
 
::-webkit-scrollbar-thumb {
  background: #65208a; 
  height:100px;
  border-radius:5px;
}
 
::-webkit-scrollbar-thumb:hover {
  background: #7e09bd; 
}
				
			

Example:
This will only work in a Webkit Browser.

About Author
W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
Leave a Reply

Your email address will not be published. Required fields are marked *

How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!