I rotated the contents of TH to have a vertical side for my table. The effect can be seen here:
http://jsfiddle.net/vuCzZ/
Essentially rotation is done through this css:
th
{
width:20px;
vertical-align:middle;
}
th div
{
transform:rotate(-90deg);
}
I would also like to narrow the width of the PM to avoid wasted space, but width:20pxit has no effect, the smaller the width of the word “Title” (I know that it transform:rotate()has only a “visual effect”, but the objects continue to fill the original space, something like concepts position:relative).
Please, how to reduce TH width to a minimum?
thank
source
share