Reputation: 110
Is it possible to style horizontal scroll bar in Table, it's so ugly ?
import { Row, Col, Modal, Table } from 'reactstrap';
<Table bordered responsive>
...
</Table>
Upvotes: 0
Views: 206
Reputation: 6485
This link should be helpful. https://css-tricks.com/almanac/properties/s/scrollbar/ jsfiddle for the example: https://jsfiddle.net/prak_mtl/ta3spmgu/5/
tableWrapperClassName::-webkit-scrollbar {
width: 1em;
}
tableWrapperClassName::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
tableWrapperClassName::-webkit-scrollbar-thumb {
background-color: darkgrey;
outline: 1px solid slategrey;
}
Upvotes: 1