/* To solver overflow issue in IE, always use properties separately, do not use short hand */ div { overflow-x: hidden; overflow-y: auto; }
/* width */ ::-webkit-scrollbar { width: 10px; } /* Track */ ::-webkit-scrollbar-track { background: #f1f1f1; } /* Handle */ ::-webkit-scrollbar-thumb { background: #888; } /* Handle on hover */ ::-webkit-scrollbar-thumb:hover { background: #555; }
div { width: 200px; height: 50px; background-color: #eee; overflow: visible; }