make sure the li elements are only as wide as the text they contain