I am facing an issue with my webpage layout. I have a side panel that takes up 25% of the page on the left side and a div on the right that takes up 75%. Within this right div, I have 4 ChartJS graphs arranged in a 2 by 2 format. Despite trying various methods such as adjusting floats, text alignment, widths, and padding, I cannot seem to get the charts to align properly within the div. They either do not center or fail to stretch out to fill the entire available space.
<div class="dashboards">
<div id="chartsId" class="row">
<div class="col-sm-5">
<canvas width="200" height="200"></canvas>
</div>
<div class="col-sm-5">
<canvas width="200" height="200"></canvas>
</div>
<div class="col-sm-5">
<canvas width="200" height="200"></canvas>
</div>
<div class="col-sm-5">
<canvas width="200" height="200"></canvas>
</div>
</div>
</div>
.dashboards {
margin: 0;
border: 1px solid red;
display: table;
width: 100%;
table-layout: fixed;
text-align: center;
}