html - Changing horizontal design on a long scrollable table -
i have long table showcase on blog looks clunky if try put in single space wrote small css make table horizontally scrollable, this:
.table-scroll { margin-bottom: 0; overflow: hidden; overflow-x: scroll; display: block; white-space: nowrap; }
now problem horizontal scroll looking bad on pcs, this:
but want this:
normally way scrollbar shows on mobile devices. can me out how can make happen?
you can achieve (for chrome , safari) using -webkit-scrollbar
, -webkit-scrollbar-thumb
:
.table-scroll::-webkit-scrollbar { height: 8px; } .table-scroll::-webkit-scrollbar-thumb { background: rgba(180, 180, 180, 0.7); }
fiddle: https://jsfiddle.net/ng3fb0gh/1/
Comments
Post a Comment