I have an unordered list that I have made horizontal. I want a bullet between each element. (The website is responsive, so I don't know where the line-break might occur).
I am wondering if there is something I could do to remove the first bullet in every new line.
Here is what i got so far.
HTML:
<ul class="list-horizontal">
<li>Inline list item #1</li>
<li>Inline list item #2</li>
<li>Inline list item #3</li>
<li>Inline list item #4</li>
<li>Inline list item #5</li>
</ul>
CSS:
.list-horizontal {
text-align: center;
font-size: 18px;
padding: 0;
}
.list-horizontal li {
display:inline-block;
}
.list-horizontal li:before {
content: '\00a0\2022\00a0\00a0';
color:#fff;
}
.list-horizontal li:first-child:before {
content: '';
}
JSFiddle
https://jsfiddle.net/tkcezggs/3/
But this only removes the bullet on the first element.
Is this possible. Either with javascript/jquery or with pure css?