I think you are looking for something like this:
HTML
<div>
<div>Marinated Olives</div>
<div class="dot"></div>
<div>4.00E</div>
</div>
CSS
.dot{
border-bottom: dotted 3px orange;
width: 100px;
float: left;
position: relative;
display: block;
height: 12px;
margin: 0 5px 0 5px;
}
div:first-child, div:last-child{
float:left;
}
violin
You can play in width to customize your favorites.
Also used a different approach using css :after
HTML
<div>
<div id="dotted">Marinated Olives</div>
<div>4.00E</div>
</div>
CSS
div{
float:left;
}
#dotted::after{
content: "..................";
letter-spacing: 4px;
font-size: 18px;
color:orange;
margin-left:20px;
}
fiddle
Here you can play with content and the interval between letters. Hope this helps :)
source
share