{"id":9078,"date":"2021-10-23T20:59:46","date_gmt":"2021-10-23T17:59:46","guid":{"rendered":"https:\/\/elzero.org\/?p=9078"},"modified":"2022-09-28T18:16:51","modified_gmt":"2022-09-28T15:16:51","slug":"tutorials-customize-scrollbar-with-css","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/tutorials-customize-scrollbar-with-css\/","title":{"rendered":"Customize Scrollbar With CSS"},"content":{"rendered":"<h3>\u0627\u0644 Code<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-html\">\r\n<div>\r\n  Lorem ipsum dolor sit amet consectetur adipisicing elit. \r\n  Debitis recusandae reiciendis est et sit ad doloremque\r\n  aut animi mollitia quod necessitatibus rem, \r\n  ea accusantium laudantium, veritatis maiores officiis voluptatum\r\n  neque.\r\n<\/div>\r\n<p>\r\n  Lorem ipsum dolor sit amet consectetur adipisicing elit. \r\n  Repellendus est quod, id iste velit esse dolorum quidem\r\n  voluptatibus.\r\n<\/p>\r\n<\/script>\r\n\r\n<script type=\"text\/plain\" class=\"language-css\">\r\n* {\r\n  box-sizing: border-box;\r\n}\r\nbody {\r\n  font-family: \"Trebuchet MS\", \"Lucida Sans Unicode\", sans-serif;\r\n  margin: 0;\r\n}\r\ndiv {\r\n  margin: 40px auto;\r\n  width: 300px;\r\n  height: 150px;\r\n  background-color: #666;\r\n  color: white;\r\n  padding: 178px;\r\n  overflow: auto;\r\n}\r\ndiv::-webkit-scrollbar {\r\n  width: 30px;\r\n}\r\ndiv::-webkit-scrollbar-track {\r\n  background-color: #eee;\r\n}\r\ndiv::-webkit-scrollbar-thumb {\r\n  background-color: brown;\r\n  border-radius: 0;\r\n}\r\ndiv::-webkit-scrollbar-thumb:hover {\r\n  background-color: black;\r\n}\r\ndiv::-webkit-scrollbar-corner {\r\n  background-color: palevioletred;\r\n}\r\np {\r\n  line-height: 2;\r\n  font-size: 25px;\r\n}\r\n::-webkit-scrollbar {\r\n  width: 50px;\r\n}\r\n::-webkit-scrollbar-track {\r\n  background-color: #f6f6f6;\r\n  box-shadow: 0 0 10px #ddd inset;\r\n}\r\n::-webkit-scrollbar-thumb {\r\n  background-color: rgb(205 92 92 \/ 50%);\r\n  border-radius: 20px;\r\n}\r\n::-webkit-scrollbar-thumb:hover {\r\n  background-color: indianred;\r\n}\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u0627\u0644 Code<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[879],"tags":[],"class_list":["post-9078","post","type-post","status-publish","format-standard","hentry","category-front-end-tutorials"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/9078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=9078"}],"version-history":[{"count":3,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/9078\/revisions"}],"predecessor-version":[{"id":9085,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/9078\/revisions\/9085"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=9078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=9078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=9078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}