I'm creating a food menu using the grid column system with bootstrap 3, and I'm trying to create dot leaders between the menu item and the price. I kind of got it to work, but I can't seem to get the dot leaders to extend to the right of the item, instead it breaks the line and continues under the menu.
Here's what I'm getting:
I tried
display:block; display:inline-block; display:inline;
in the CSS. The only way I seem to be able to stop it from breaking is shortening the
content: '...'
Is there a way I can get this to work, or do I have put the content in a table or use list items?
Here is the rest of my code, if anyone could help, I would appreciate it, thanks.
<div class="row>
<div class="col-xs-6">
<p class="item dots">Cheese</p>
<p class="item dots">White</p>
<p class="item dots">Special</p>
</div>
<div class=col-xs-2>
<p class="item">$8.99</p>
<p class="item">$9.99</p>
<p class="item">$13.50</p>
</div>
</div class=col-xs-2>
<p class="item">$10.99</p>
<p class="item">$11.99</p>
<p class="item">$15.50</p>
</div>
</div class=col-xs-2>
<p class="item">$12.99</p>
<p class="item">$13.99</p>
<p class="item">$17.50</p>
</div>
</div>
.dots::after {
display: inline-flex;
white-space: nowrap;
overflow: hidden;
text-overflow: clip;
content:
" . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . "
}