CSS を使用してグラフを作成しましたが、内側の div (バー クラス) でいくつかの問題が発生しました。内側の div の間に空白があります。float: left を使用してみました。空白を削除できますが、内側の div は外側の div (グラフ クラス) の下部に隣接していません。
これはリンクの例です (まだ空白を削除していません): http://dabblet.com/gist/2779082
ありがとう
HTML
<div class="graph">
<div style="height: 22px;" class="bar"></div>
<div style="height: 11px;" class="bar"></div>
<div style="height: 6px;" class="bar"></div>
<div style="height: 49px;" class="bar"></div>
<div style="height: 28px;" class="bar"></div>
</div>
CSS
.graph {
width: 50px;
height: 50px;
border: 1px solid #aeaeae;
background-color: #eaeaea;
}
.bar {
width: 8px;
margin: 1px;
display: inline-block;
position: relative;
background-color: #aeaeae;
vertical-align: baseline;
}