I’m looking for a way to style an unordered list in XHTML with CSS such that it is rendered inline and the list items are separated by commas.
For example, the follo
This is the way that the guys at A List Apart recommend in their article “Taming Lists":
#taglist ul li:after { content: ","; } #taglist ul li.last:after { content: ""; }
This requires having the last item in your list tagged with a class attribute value of “last”:
class
apple orange banana