For my web app, I am working on a table that will contain multiple <tr>
and <td>
Here's the code snippet:
<tr>
<th style="width:30px;">date</th>
</tr>
<tr>
<td>10-10-2016</td>
</tr>
Everything was functioning perfectly until I decided to add another tr
<tr>
<td style="width:200px;">Expense incurred towards sessions</td>
</tr>
Unfortunately, when I added the new row it started altering the width of my date (th, td) or else displaying the content in a stack-like manner.
Expense
incurred
towards
sessions
I aim to prevent the increase in width of my date td and ensure that my second td stays on the same line as intended.
Expense incurred towards sessions
Could someone provide guidance on how to adjust the CSS for this specific layout?
This represents the structure of my table:
<table id="table" ng-hide="hidetable" class="table font" style="width:100%;
margin-top:30px; padding-top:10px;">