JSFiddle - React, Tailwind, and code Playground
by neal_fletcher
HTML
<!--Start Financial Table-->
<table class="financial-table" style="width:100%;" cellspacing="0">
<tr>
<td class="eighty thin-border left ">Parent Charity<br/><span class="light">The parent charity’s gross income and the results for the year are disclosed as follows:</span></td>
<td class="ten thin-border right light"></td>
<td class="ten thin-border right light"></td>
</tr>
<tr style="font-size: 12px !important;">
<td class="eighty left light"></td>
<td class="ten right"></td>
<td class="ten right light">RIBA<br/>Enterprises Ltd</td>
</tr>
<tr>
<td class="eighty left light" style="opacity: 0;">0</td>
<td class="ten right light"></td>
<td class="ten right light"></td>
</tr>
<tr style="font-size: 12px !important;">
<td class="eighty thick-border left light"></td>
<td class="ten thick-border right">2014<br/>£’000</td>
<td class="ten thick-border right light">2013<br/>£’000</td>
</tr>
<tr>
<td class="eighty thin-border left light">Gross income</td>
<td class="ten thin-border right">15,574</td>
<td class="ten thin-border right light">14,180</td>
</tr>
<tr>
<td class="eighty thick-border left light">Results for the year</td>
<td class="ten thick-border right">881</td>
<td class="ten thick-border right light">(284)</td>
</tr>
<tr>
<td class="eighty left light" style="opacity: 0;">0</td>
<td class="ten right light"></td>
<td class="ten right light"></td>
</tr>
<tr>
<td class="eighty thick-border left light"></td>
<td class="ten thick-border right">16,455</td>
<td class="ten thick-border right light">13,896</td>
</tr>
</table>
<!--End Financial Table-->
CSS
/* Financial Table Content */
table.financial-table {
position: relative;
width: 100%;
height: auto;
font-family:'bariol_regularregular';
font-weight: bold;
color: #4a5058;
font-size: 15px;
line-height: 1.3em;
margin-top: 20px;
margin-bottom: 40px;
}
table.financial-table td {
vertical-align: text-top;
padding-top: 2px;
padding-bottom: 2px;
padding-right: 8px;
}
table.financial-table.with-borders td {
padding-right: 8px;
}
table.financial-table td.thin-border {
border-bottom: 1px solid #999999;
}
table.financial-table td.thick-border {
border-bottom: 2px solid #4a5058;
}
table.financial-table td.side-border {
border-left: 1px solid #999999;
}
table.financial-table td.right {
text-align: right;
}
table.financial-table td.light, table.financial-table td .light {
font-weight: normal;
}
table.financial-table td.hundred {
width: 100%;
}
table.financial-table td.ninety {
width: 90%;
}
table.financial-table td.eighty {
width: 80%;
}
table.financial-table td.seventy {
width: 70%;
}
table.financial-table td.sixty {
width: 60%;
}
table.financial-table td.fifty {
width: 50%;
}
table.financial-table td.forty {
width: 40%;
}
table.financial-table td.thirty {
width: 30%;
}
table.financial-table td.twenty {
width: 20%;
}
table.financial-table td.ten {
width: 10%;
}