Style-Dots

by mikeskinner

HTML

<div class="list-dots">
    <dl>
        <dt>How to add a job to the schedule</dt>
        <dd>23</dd>
    </dl>
    <dl>
        <dt>Delete a job from the Scheduling</dt>
        <dd>24</dd>
    </dl>
    <dl>
        <dt>Change a scheduled job date</dt>
        <dd>26</dd>
    </dl>
    <dl class="no-item">
        <dt>No information avaialbe on this topic</dt>
    </dl>
</div>

CSS

div {
  width: 400px;
}
.list-dots dl {
    display: table;
    width: 100%;
    margin: 0;
}
.list-dots dt {
    display: table-cell;
    width: 100%;
    max-width: 0;
    overflow: hidden;
    vertical-align: top;
}
.list-dots dt span::after {
    content: " "
}
.list-dots dt::after {
    content: "..................................................................................................................................................................................................................";
    display: inline-block;
    width: 0;
    color: rgba(0, 0, 0, .6);
}
.list-dots .no-item dt::after {
    content: ""}
.list-dots dd {
    display: table-cell;
    margin: 0;
    padding-left: 4px;
    vertical-align: bottom;
    white-space: nowrap;
}
.list-dots dt::before {
  content: "[  ] - ";
}