Is it possible to place a delimiter between each inline <li>
but so that it appears only between each item in the line and never in the beginning or at the end of a line?
If it can't be done with CSS then maybe can it be solved with JavaScript/jQuery?
http://codepen.io/anon/pen/Pbxddo
<ul>
<li>Something</li>
<li>Something</li>
<li>Something</li>
<li>Something</li>
</ul>
ul {
list-style-type: none;
padding: 10px;
li {
display: inline;
&:after {
padding-left: 5px;
content: '|';
}
}
}
EDIT: I don't think anyone understood... what I want is to remove EVERY delimiter that is in the beginning or at the end of each line, I don't know how to write it more clearly.
In this image this delimiters should be removed
So that the result will look like this