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

#192236
Linkan
Participant

Thank you, I managed to make it look better. However the width of the final <th> element seems to be inconsistent with the total width of the table, it seems like it has been cropped to at the scrollbar.

Which must be because the width of thead is not 100%, however is there a way to colour the upper-right corner aswell?

If I set the width of thead to 100 % it works sort of, but then the headers are inconsistent with the labels (<td>) below corresponding to the <th> element.

So maybe if I colour the whole table with the same colour as the thead, the columns would be consistent and there wouldn’t be any whitespace?

Here is the updated version:
http://codepen.io/anon/pen/zxoRxb <!– link –>

What exactly do you mean I need to change about the thead section? An example would be much appreciated :)

Thank you for your answer!