hgs
06-10-2012, 12:23 PM
Hi
I would expect an adjustment of the hight of a row when the content of
one of the TH elements is rotated 90 degrees, but this is not the case.
Is my expectation wrong ?
Just grab the example below and display it in your browser.
<html>
<head>
<title>rotate</title>
<style>
.rotate{
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
writing-mode: tb-rl;
}
</style>
</head>
<body>
<pre>
Here the content of the TH element is rotated
but there is no change of the layout if the parent TR
</pre>
<table border="1">
<tr><th>a</th><th>b</th><th><div class="rotate">ccccccc</div></th></tr>
<tr><td>1</td><td>22</td><td>333</td></tr>
</table>
<pre>
Here the entire TH element is rotated
</pre>
<table border="1">
<tr><th>a</th><th>b</th><th class="rotate">ccccccc</th></tr>
<tr><td>1</td><td>22</td><td>333</td></tr>
</table>
</body>
</html>
I would expect an adjustment of the hight of a row when the content of
one of the TH elements is rotated 90 degrees, but this is not the case.
Is my expectation wrong ?
Just grab the example below and display it in your browser.
<html>
<head>
<title>rotate</title>
<style>
.rotate{
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
writing-mode: tb-rl;
}
</style>
</head>
<body>
<pre>
Here the content of the TH element is rotated
but there is no change of the layout if the parent TR
</pre>
<table border="1">
<tr><th>a</th><th>b</th><th><div class="rotate">ccccccc</div></th></tr>
<tr><td>1</td><td>22</td><td>333</td></tr>
</table>
<pre>
Here the entire TH element is rotated
</pre>
<table border="1">
<tr><th>a</th><th>b</th><th class="rotate">ccccccc</th></tr>
<tr><td>1</td><td>22</td><td>333</td></tr>
</table>
</body>
</html>