I want to display rotated text as table headers, using the CSS transform property. The header row should adjust its height as needed, but instead the rotated text just overflows:

My question is, how to get the table header to grow as needed? Essentially it should look like this:


