Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css ordened list style color

<html>
<head>
    <style>
        ol { counter-reset: item; }
        ol li { display: block; }
        ol li:before {
            content: counter(item) ". ";
            counter-increment: item;
            color: red;
        }
    </style>
</head>
<body>
    <ol>
        <li>item</li>
        <li>item</li>
        <li>item</li>
    </ol>
</body>
</html>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #ordened #list #style #color
ADD COMMENT
Topic
Name
5+2 =