I have this so far: [![enter image description here][1]][1]
https://iamsteve.me/uploads/blog/inline-block-example.png
Problem here is that I don't know how to change vertical postion of this div elements. I'm allowed to use CSS1 and CSS2 for old browsers.
HTML
<div id="graph">
<div style="height: 100px;" class="row"></div>
<div style="height: 200px;" class="row"></div>
<div style="height: 100px;" class="row"></div>
<div style="height: 250px;" class="row"></div>
<div style="height: 300px;" class="row"></div>
<div id="legend">
<div class="text">10</div>
<div class="text">20</div>
<div class="text">30</div>
<div class="text">40</div>
<div class="text">50</div>
</div>
</div>
CSS
.text {
background-color: gray;
width: 18%;
float: left;
margin: 1%;
text-align: center;
}
.row {
background-color: gray;
width: 18%;
float: left;
margin: 1%;
}