I'm struggling to figure out why the CSS left property is not working as expected.
Within my HTML, I have a page-header element from Bootstrap:
<div class="page-header">
<h1>Page-header</h1>
</div>
<div class="all charts">
<div id="chart1"></div>
<div id="chart2"></div>
</div>
And here is the relevant part of my CSS:
.page-header {
background-color: none;
width: 1000%;
}
.allcharts {
left: 20px;
}
#chart1 {
width: 2000%;
float: left;
}
I'm puzzled because my "all charts" div (which should be positioned 20px from the left) and chart 1 and 2 all seem to be ignoring the left position specified in the CSS. Even when trying to override this in the stylesheet, they still align with the page-header element. Can anyone explain why this might be happening?