css scroller code example
Example 1: custom scrollbar
body::-webkit-scrollbar {
width: 12px;
}
body::-webkit-scrollbar-track {
background: orange;
}
body::-webkit-scrollbar-thumb {
background-color: blue;
border-radius: 20px;
border: 3px solid orange;
}
Example 2: custom scroll bar
*::-webkit-scrollbar {
width: 10px;
}
*::-webkit-scrollbar-track {
background: #f1f1f1;
}
*::-webkit-scrollbar-thumb {
background: #888;
}
*::-webkit-scrollbar-thumb:hover {
background: #555;
}
Example 3: scroll css
<div style="overflow: scroll;">
<?php echo $this->element('menu/left_sidebar'); ?>
</div>
// overflow: scroll;