I am dealing with a page that contains multiple sub-tables nested inside a larger table, dividing the entire page into two sections. My query is regarding the repositioning of all elements within the td
tags to enhance the visual appearance. The current result can be seen here:
View the current layout without any position formatting
The desired look should resemble this:
See how it's supposed to appear
I attempted to achieve this using CSS and relative positioning like so:
.leftSide
{
position: relative;
bottom: 250px;
}
While this solution worked well initially, issues arose when zooming in or out on the page, causing elements to become disorganized. How can I prevent this from happening? Find my complete code below:
(CSS styles omitted for brevity)
<table class="splitTable">
<tr>
<td class="sides">
<div class="leftSide">
<span class="chooseText">Choose</span>
<table class="SSRSSObjectCostTableTest" width="25%">
<tr>
<td class="sideForSSRSSTables">Say this is 1st element</td>
<td class="sideForSSRSSTables">Say this is 2nd element</td>
</tr>
</table>
</div>
</td>
<td class="sides">
<div class="rightSide">
<span class="partsText">Parts</span>
<button type="button" class="addButton">+Add Part</button>
<table class="partsTable">
<td class="sideForPartsTable" width="5%">Expand button</td>
<td class="sideForPartsTable">Title + sum1 + sum2</td>
<td class="sideForPartsTable" width="5%">edit</td>
<td class="sideForPartsTable" width="5%">remove</td>
</table>
</div>
</td>
</tr>
</table>