Home › Forums › CSS › Stylized html table with vertical scroll inside tbody › Reply To: Stylized html table with vertical scroll inside tbody
January 5, 2015 at 4:30 am
#192206
Participant
hey
for starters you could apply box-sizing: border-box
to all elements.
then add width: 100%
to the thead
and width: 20%
to the tbody td, thead th
.
as for the /* minus scroll bar width */
part, you would need more than that, because mac os and windows (as well as linux probably) behaves differently regarding scrollbar width. basically mac os doesn’t include it, if there’s a scrollbar then it’s on top of everything and fades in/out when scrolling