Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

change style of ordered list numbers css

ol {
   list-style: none;
   counter-reset: item;
 }
 li {
   counter-increment: item;
   margin-bottom: 5px;
 }
 li:before {
   margin-right: 10px;
   content: counter(item);
   background: lightblue;
   border-radius: 100%;
   color: white;
   width: 1.2em;
   text-align: center;
   display: inline-block;
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #style #ordered #list #numbers #css
ADD COMMENT
Topic
Name
5+9 =