Display inline list with separators

This is useful for displaying menu elements and creating comma separated lists. Add the following code to your css/stylesheet. You may use unordered lists or ordered lists with similar results.


Keep in mind that :last-child is not supported by IE8 and previous.

You can find a list of more CSS selectors at w3schools