I have a page with a sidepanel taking up 25% with float:left side of the page, and a div with float:right taking up the other 75%. In the right div, there are 4 ChartJS graphs in a 2 by 2 format. For reasons I can't seem to figure out, I can't get the Charts to either align in the center of the div, or get them to stretch out to use the entire div, and not just the left 70ish %. I've tried different floats, text-align, widths, padding and can't seem to get it right.
<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;
}
