Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Stylized html table with vertical scroll inside tbody Reply To: Stylized html table with vertical scroll inside tbody

#192206
trlmkb
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