Hello there! I am currently working on a website layout and facing a particular issue:
There is a page where some data is loaded dynamically. However, upon initial loading of the page, the item is not displayed correctly. before ajax update
Once the data is updated, the item appears as intended. after ajax update
I am looking for suggestions on how to ensure that the original page looks tidy.
Thank you.
HTML:
<table id="loco-summary" class="no-loco">
<tbody>
<tr>
<td>
<span class="selection" style="background-color: rgba(0, 128, 0, 0.35)">Connected: 26</span>
<span class="selection" style="background-color: rgba(255, 0, 0, 0.35)">Disconnected at station: 10</span>
<span class="selection" style="background-color: rgba(0, 0, 0, 0.35)">Disconnected: 20</span>
</td>
<td rowspan="2" class="border-left" style="white-space: nowrap;">
<span class="selection">Total: 67</span>
<span class="error-selection" style="background-color: white; color: red;">Errors: 15</span>
</td>
</tr>
<tr>
<td>
<span class="selection">At the station: 32</span>
<span class="selection">In depot: 7</span>
<span class="selection">Off station: 28</span>
</td>
</tr>
</tbody>
</table>