Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Formatting HTML lists inline.
ul {
display: inline;
list-style: none;
padding: 0;
> li {
display: inline;
&:before {
display: inline;
content: ", ";
}
&:first-of-type:before {
display: none;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment