I used it before to implement style in a floating list
<style> #horz-list li { float: left; } #horz-list li:after { content: "\00a0-\00a0"; } #horz-list li:last-child:after { content: ""; } </style> <ul id="horz-list"> <li>first item</li> <li>second item</li> <li>third item</li> </ul>
This will create something like
first element - second element - third element
This preserves the semantics of the markup, and I can represent the style of such a dash via css.
Ben Rowe May 05 '10 at 4:53 a.m. 2010-05-05 04:53
source share