I created a minimalist CSS bar chart, but each bar originates from the top.
.wrap {
width: 400px;
position: relative;
overflow: hidden;
}
.barchart {
display: inline-block;
margin-left: 0.2px;
}
.barchart.column {
width: 11px;
margin-left: 3px;
font-size: xx-small;
text-align: center;
color: #fff;
}
<div class="wrap">
<div class="barchart column" style="background: #666; height:
50px">5</div>
<div class="barchart column" style="background: #666; height:
70px">7</div>
</div>
Live Example: https://jsfiddle.net/jL68sa0h/
I attempted to use position: relative for the parent div and position: absolute; for the bars without success...
Is there a way to keep the bars anchored to the bottom exclusively with CSS? Thank you!