Dots

by Mark Penner

HTML

<div class="table">
    <div class="row">
        <div class="title">Big text here</div>
        <div class="dots"></div>
        <div class="value">57 MB</div>
    </div>
    <div class="row">
        <div class="title">Small title text</div>
        <div class="dots"></div>
        <div class="value">104 MB</div>
    </div>
    <div class="row">
        <div class="title">One more for good luck</div>
        <div class="dots"></div>
        <div class="value">4.8 MB</div>
    </div>
</div>

CSS

html,body {
    width: 100%;
    height: 100%;
}

body {
    background: #cedce7;
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, #cedce7 0%, #596a72 100%);
    /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right bottom, color-stop(0%, #cedce7), color-stop(100%, #596a72));
    /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(-45deg, #cedce7 0%, #596a72 100%);
    /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(-45deg, #cedce7 0%, #596a72 100%);
    /* Opera 11.10+ */
    background: -ms-linear-gradient(-45deg, #cedce7 0%, #596a72 100%);
    /* IE10+ */
    background: linear-gradient(135deg, #cedce7 0%, #596a72 100%);
    /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cedce7', endColorstr='#596a72', GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
}
.row {
    display: table;
}
.title, .dots, .value {
    display: table-cell;
}
.title, .value {
    white-space:nowrap;
}
.table {
    width: 500px;
    margin: 10px;
}
.dots {
    border-bottom: 1px dotted gray;
    width: 100%;
}