Home > UI/UX Development > CSS > CSS Scrollbar

CSS Scrollbar

This post was most recently updated on August 2nd, 2024

Many times we need to change the way browsers render scrollbars, although we don’t find enough browsers that support it( 🙁 ) not even vendor-prefixed properties except for Webkit.Webkit supports styling your scrollbar as required, and yes this means you could only view these custom scrollbars in Safari and Chrome browsers.

You could visit this link for various ways in which the following properties can be used (only Safari & Chrome).

CSS3 Scrollbar elements

::-webkit-scrollbar  scrollbar
::-webkit-scrollbar-button                        scrollbar-buttin
::-webkit-scrollbar-track                       scrollbar-track
::-webkit-scrollbar-track-piece                       scrollbar-track-piece
::-webkit-scrollbar-thumb                       scrollbar-track-piece
::-webkit-scrollbar-corner      

::-webkit-resizer

                        scrollbar-corner

 

Source code:

CSS

p>HTML

  PREVIEW:

  ss
This Article is TAGGED in , . BOOKMARK THE permalink.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">