Alphabetically ordered lists with right brackets instead of dots

An example, that shows, that this neat solution works fine only for one-level lists! Source: http://stackoverflow.com/a/1636635/1469208

by trejder

HTML

<ol>
        <li>number 1</li>
        <li>number 2</li>
        <li>number 3</li>
        <li>number 4</li>
        <li>number 5</li>
        <li>number 6:
            <ul>
                <li>number 1</li>
                <li>number 2</li>
                <li>number 3</li>
                <li>number 4</li>
                <li>number 5</li>
                <li>number 6</li>
            </ul>
        </li>
    </ol>

CSS

ol {counter-reset: list;}

    ol li {list-style: none;}

    ol li:before
    {
        counter-increment: list;
        content: counter(list, lower-alpha) ") ";
    }