JSFiddle - React, Tailwind, and code Playground
HTML
<div id='main'>
<div id='page-wrap'>
<div id='aside'>
<h3>Heading and stuff</h3>
<table cellspacing='0' cellpadding='5' border='1'>
<thead>
<tr>
<th>Name</th>
<th>Value 1</th>
<th>Value 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Dogs</td>
<td>100</td>
<td>150</td>
</tr><tr>
<td>Cats</td>
<td>75</td>
<td>85</td>
</tr>
<tr>
<td>Total Count</td>
<td>175</td>
<td>235</td>
</tr>
</tbody>
<tfoot>
<tr>
<th> </th>
<th><span class="lTextSpan">Long text here</span></th>
<th><span class="lTextSpan">More long text</span></th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
CSS
#main {
font-family: Sans-Serif;
}
#page-wrap {
width: 300px;
margin: 20px auto;
}
#aside {
display: block;
position: relative;
margin: 0;
border-left: 34px solid #369;
padding-left: 0;
}
#aside h3 {
font: bold 0.5em Sans-Serif;
letter-spacing: 0.5em;
text-transform: uppercase;
color: #fff;
padding: 5px 10px;
margin: 0 0 10px 0;
line-height: 24px;
/* Abs positioning makes it not take up vert space */
position: absolute;
top: 0;
left: 0;
/* Border is the new background */
background: none;
/* Rotate from top left corner (not default) */
transform-origin: 0 0;
transform: rotate(90deg);
}
tfoot td span{display:table; border-spacing:0; margin-left: 10px}
th {
background: WhiteSmoke;
}
th
{
vertical-align: bottom;
text-align: center;
}
.lTextSpan
{
-ms-writing-mode: tb-rl;
-webkit-writing-mode: vertical-rl;
writing-mode: vertical-rl;
transform: rotate(200deg);
white-space: nowrap;
}