This is my CSS and HTML:
.moving-steps > li:before {
background: none repeat scroll 0 0 #8F8888;
border-radius: 15px;
color: #FFFFFF;
counter-increment: headings 1;
content: counter(headings, decimal);
display: block;
float: left;
font-size: 16px;
font-weight: bold;
height: 25px;
line-height: 26px;
margin-bottom: 0;
margin-right: 5px;
text-indent: 8px;
width: 25px;
}
<ul class="moving-steps">
<li></li>
<li></li>
<li></li>
</ul>
This code is not working.
counter-increment: headings 1;
content: counter(headings, decimal);
This inserts 1
every time, what am I missing?
counter-increment
only accepts a counter name, and thecontent
should becounter(name, '.')
or the likes. What's the point of that counter, anyway? It seems to be the default.