I have a table with two rows and columns. If one of the columns is empty, it should move up to the upper row.
For example:
|td1 | td2|
|td3 | |
|td5 | td6|
This is what I want:
|td1 | td2|
|td3 | td5|
|td6 | |
Below is the code snippet that I am using:
<div class="row pl-3 bg-white" id="interests">
<div class="col-md-12">
<table class="table table-borderless table-condensed table-responsive-md">
<tbody>
<tr>
<th scope="row"><img id="icons" src="assets/ic_Funding.svg"></img>
</th>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</td>
<th scope="row"><img id="icons" src="assets/ic_ITspends.svg"></img>
</img>
</th>
<td>sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</td>
</tr>
<tr>
<th scope="row"><img id="icons" src="assets/ic_investors.svg"></img>
</th>
<td>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</td>
<!-- <th scope="row"><img id="icons" src="assets/ic_Hiring.svg"></img></th>
<td>What if this doesn't exist. Can I move td below here?</td> -->
</tr>
<tr>
<th scope="row"><img id="icons" src="assets/ic_Interest Signals.svg"></img>
</th>
<td>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum”.</td>
<th scope="row"><img id="icons" src="assets/ic_WebsiteTechStack.svg"></img>
</th>
<td>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</td>
</tr>
<tr>
<th scope="row"><img id="icons" src="assets/ic_Events.svg"></img>
</th>
<td>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</td>
<th scope="row"><img id="icons" src="assets/ic_CompanyTechStack.svg"></img>
</th>
<td>sunt in culpa qui officia deserunt mollit anim id est laborum</td>
</tr>
</tbody>
</table>
</div>
</div
Is there something missing in my implementation? Previously, I had two separate tables in each col-md-6 but now I consolidated them into one table resulting in rearranged rows. However, they are not rearranging as expected.