ol.codeListing { font-family: monospace; color: green; background-color: #fff; list-style-type: decimal-leading-zero; list-style-position: inside; width: 80%;} ol.codeListing li { background-color: #eee; margin: 2px;} ol.codeListing li code { color: black; white-space: pre; margin-left: 1em;} /* Hack to get Konqueror 3.0 to display blank lines without crunching them up, courtesy of Jim Dabell. Alternatively use <li><code> </code></li> */ol.codeListing li code:before { content: "";}<ol class="codeListing"><li><code>ol.codeListing {</code></li><li><code> font-family: monospace;</code></li><li><code> color: green;</code></li><li><code> background-color: #fff;</code></li><li><code> list-style-type: decimal-leading-zero;</code></li><li><code> list-style-position: inside;</code></li><li><code> width: 80%;</code></li><li><code>}</code></li></ol>Created by Simon Willison, 10th July 2002. Original inspiration Dan Loda. Copy at will.