Internet Explorer is required to view this example.
Emulate CSS content property in IE.
content
Use IE built-in command expression.
expression
but this way—its no good
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17
<style type="text/css"> ul.example { margin: 0.5em 0; padding: 0 0 0 2em; } ul.example li { margin: 0.5em 0; padding: 0 0 0 20px; list-style-type: none; behavior: expression( !this.before ? this.before = this.innerHTML = '— ' + this.innerHTML : '' ); text-indent: -1.24em; } ul.example li:before { content: '\2014\a0'; } </style> <ul class="example"> <li>item<sup>®</sup></li> <li> —this item already has a dash</li> <li><p>but this way—it’s no good</p></li> </ul>