Skip to content

Instantly share code, notes, and snippets.

@pc-magas
Created September 17, 2021 11:32
Show Gist options
  • Save pc-magas/e6e3505a693ea44c11bbe6ad417356cb to your computer and use it in GitHub Desktop.
Save pc-magas/e6e3505a693ea44c11bbe6ad417356cb to your computer and use it in GitHub Desktop.
Inline UL with billets except first element
ul.list-inline {
list-style-type: disc;
}
ul.list-inline li {
display: inline-block;
}
ul.list-inline li:not(:first-child){
margin-left: 1em;
}
ul.list-inline li:not(:first-child)::before {
content:"";
display: list-item;
position: absolute;
}
<ul class="list-inline">
<li>
Grece
</li>
<li>
Balkans
</li>
<li>
Fish & Chips
</li>
<li>
€€€€
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment