Here's the JSFiddle, which is a simple table from the internal CMS:
<table class="rotated-text">
<thead>
<tr>
<th>property</th>
<th>San Francisco, CA</th>
<th>New York, NY</th>
<th>Washington, DC</th>
<th>Charlottesville, VA</th>
</tr>
</thead>
<tbody>
<tr>
<td>days of sunshine</td>
<td>260</td>
<td>200</td>
<td>210</td>
<td>220</td>
</tr>
</tbody>
</table>
I would like to rotate the text in all but the first element 45 degrees counterclockwise, but without attracting the background. I also hope that I can do this without changing the HTML - only using CSS. The result should look something like this:

Is it possible?
source
share