How to Create a Beautiful Custom Scrollbar for Your Site in Plain CSS Awesome site I use it all the time. I cherish colours. However, this one contains a solitary scrollbar which looks eyecatching. The scrollbar-width property is used to set the width or thickness of an element's scrollbar when shown. Here you can find the best and useful information related to HTML/HTML5, CSS/CSS3, Bootstrap, JavaScript, React JS, React Natve, Android App Development and more. Connect and share knowledge within a single location that is structured and easy to search. The basic utilization of the linguistic structure helps make scrollbar be usable for the activities. How to fix missing dependency warning when using useEffect React Hook. Code ::-webkit-scrollbar { background-color: lightGrey; width: 18px; } ::-webkit-scrollbar-thumb:hover { width: 30px; background-color: red; } ::-webkit-scrollbar-thumb { background-color: grey; } All the code (with Vue framework): https://codepen.io/anon/pen/eVYQvq Here's just a simple HTML version: https://codepen.io/anon/pen/EQxGZX Problem This is additionally same as the scrollbars we just examined about. Antonio J Figueroa you can use CSS body{overflow-y:overlay;}, but be aware that overlay is non-standard property and only Chrome supports that. At the end of the day most of us are writing code to drive revenue for a business, so you always need to keep that in mind. As we probably am aware these scrollbars makes the page alluring so it raises the clients understanding. Your email address will not be published. The ultimate action-packed science and technology magazine bursting with exciting information about the universe; Subscribe today for our Black Frida offer - Save up to 50% You can make a tax-deductible donation here. * (won't be visible otherwise if width/height is specified) */, .mostly-customized-scrollbar::-webkit-scrollbar, .mostly-customized-scrollbar::-webkit-scrollbar-thumb, Assessment: Fundamental CSS comprehension, Assessment: Creating fancy letterheaded paper, Assessment: Typesetting a community school homepage, Assessment: Fundamental layout comprehension, CSS Custom Properties for Cascading Variables, css.selectors.-webkit-scrollbar-track-piece. All the scrollbars design looks fascinating. The temperatures listed are averages of the daily highs and lows. If the browser doesn't reserve any space for it (the scrollbar is half-translucent over the text, also happens), then it may be 0px. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. The first thing you need to do is create a basic layout so the page is large enough to actually show a scrollbar in your web browser: Nothing fancy here, just a basic div container with the class name container for our layout, a header for a title, and a bunch of paragraphs with the class name para to fill out our page. This css model has loads of scrollbar choice accessible with color. How to force Unity Editor/TestRunner to run at full speed when in background? The custom scrollbar is available with the demo and the css source code. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. The scrollbar is spotless and straightforward so they can be effectively incorporated into the undertakings. How can I select an element with multiple classes in jQuery? CSS CSS Options .scroller { width: 600px; height: 100px; overflow-y: scroll; scrollbar-width: thin; border-top: 1px solid #999; border-bottom: 1px solid #999; } body { font: 1.4em Helvetica, arial, sans-serif; padding: 30px; } JS JS Options How best to communicate jQuery and Angular, Change width of the scrollbar in html