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:

enter image description here

but want this:

enter image description here

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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -