When I use class="col"
, it reduces the table width and since there are many columns, each centimeter counts.
If I switch to class="row"
, even with
class="row d-flex flex-wrap align-items-center align-items-stretch
applied, it doesn't stretch vertically, preventing me from utilizing the screen space efficiently.
This issue arises when using row
.
https://i.sstatic.net/tGX7U.png
Below is the snippet of html
where this occurs:
<html>
<head>
<base target="_top">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="02606d6d7671767063722f6b616d6c7142332c3a2c31">[email protected]</a>/font/bootstrap-icons.css">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</script>
</head>
<div class="col" id="tableDiv">
<div class="row">
<div id="po-items" class="table-responsive">
<div class="card" id="card">
<table class="table table-hover table-vcenter" id="dtable">
<thead>
<tr>
<th style="width:18%">Fabric</th>
<th style="width:2%; display:none">Name</th>
<th style="width:15%">Color</th>
<th style="width:10%">Pantone</th>
<th style="width:15%">Content</th>
<th style="width:2%; display:none">Construction</th>
<th style="width:7%">Width (m)</th>
<th style="width:5%">Weight (gsm)</th>
<th style="width:7%">Price/m (USD)</th>
<th style="width:8%">Meters (m)</th>
<th style="width:10%">Total Price without VAT (COP)</th>
<th style="width:5%">Select</th>
</tr>
</thead>
<tbody id="tableRows">
<tr>
<td><input type="text" name="tableInputs" value="19677 D.Moss"></td>
<td style="display:none">R</td>
<td><input type="text" name="tableInputs" value="Black"></td>
<td><input type="text" name="tableInputs" value=""></td>
<td><input type="text" name="tableInputs" value="79 recycled poly / 21 span"></td>
<td style="display:none"></td>
<td><input type="text" name="tableInputs" value="1.27"></td>
<td><input type="number" min="0" class="item-table-values" name="numberInputs" value="235"></td>
<td><input type="number" step="0.01" min="0" class="price" name="numberInputs" value="6.61636045" onchange="add_to_total(this)"></td>
<td><input type="number" min="0" class="qty" name="numberInputs" value="406" onchange="add_to_total(this)"></td>
<td class="total_price">$2,686.24</td>
<td><input type="checkbox"></td>
</tr>
<tr>
<td><input type="text" name="tableInputs" value="19677 D.Moss"></td>
<td style="display:none">R</td>
<td><input type="text" name="tableInputs" value="Iron Gate"></td>
<td><input type="text" name="tableInputs" value=""></td>
<td><input type="text" name="tableInputs" value="79 recycled poly / 21 span"></td>
<td style="display:none"></td>
<td><input type="text" name="tableInputs" value="1.27"></td>
<td><input type="number" min="0" class="item-table-values" name="numberInputs" value="235"></td>
<td><input type="number" step="0.01" min="0" class="price" name="numberInputs" value="6.61636045" onchange="add_to_total(this)"></td>
<td><input type="number" min="0" class="qty" name="numberInputs" value="265" onchange="add_to_total(this)"></td>
<td class="total_price">$1,753.34</td>
<td><input type="checkbox"></td>
</tr>
<tr>
<td><input type="text" name="tableInputs" value="15094 D.Moss"></td>
<td style="display:none">L</td>
<td><input type="text" name="tableInputs" value="Wine"></td>
<td><input type="text" name="tableInputs" value=""></td>
<td><input type="text" name="tableInputs" value="79 poly / 21 span"></td>
<td style="display:none"></td>
<td><input type="text" name="tableInputs" value="1.27"></td>
<td><input type="number" min="0" class="item-table-values" name="numberInputs" value="235"></td>
<td><input type="number" step="0.01" min="0" class="price" name="numberInputs" value="6.28827647" onchange="add_to_total(this)"></td>
<td><input type="number" min="0" class="qty" name="numberInputs" value="127Add YldAdd Yld" onchange="add_to_total(this)"></td>
<td class="total_price"><strong>$0.00</strong></td>
<td><input type="checkbox"></td>
</tr>
</tbody>
<tfoot>
<tr>
<td id="totalTitle" colspan="0" align="right"><strong>Total:</strong></td>
<td id="totalValue" class="total">$4,439.58</td>
</tr>
</tfoot>
</table>
<div class="row"><label for="notes">Notes:</label><textarea id="notes" name="notes" rows="4" cols="50"></textarea></div><br>
<div class="col received-by"><span class="received-by">Received by:</span><span class="line"></span></div>
</div>
</div>
</div>
</div>
How can I resolve this issue?