{"id":235,"date":"2016-05-25T07:16:39","date_gmt":"2016-05-25T07:16:39","guid":{"rendered":"http:\/\/muthu.co\/?p=235"},"modified":"2021-01-02T14:05:50","modified_gmt":"2021-01-02T14:05:50","slug":"styling-the-default-browser-scroll-bar-using-css","status":"publish","type":"post","link":"http:\/\/write.muthu.co\/styling-the-default-browser-scroll-bar-using-css\/","title":{"rendered":"Styling the default browser scroll bar using CSS"},"content":{"rendered":"
Default\u00a0Scroll Bar<\/p>\n
<\/a><\/p>\n Add the below CSS code\u00a0to your stylesheet<\/p>\n This is what you get, a more beautiful Scroll Bar<\/p>\n <\/a><\/p>\n <\/p>\n Lets add some round corners and increase the width<\/p>\n \u00a0This is what we\u00a0get<\/p>\n::-webkit-scrollbar {\r\n width: 4px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); \r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); \r\n}<\/pre>\n
\n::-webkit-scrollbar {\r\n width: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);\r\n -webkit-border-radius: 10px;\r\n border-radius: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\r\n -webkit-border-radius: 10px;\r\n border-radius: 10px;\r\n}<\/pre>\n