Counter Step
-
Hello!
I’m using this custom CSS for the ordered list.
/* Lists icon formating*/
ul, ol {
margin-bottom: 40px;
list-style-type: none;
}
.counter li {
counter-increment: step-counter;
margin-bottom: 10px;
}
.counter li::before {
position: absolute;
left: 15px;
content: counter(step-counter);
font-size: 80%;
background-color: #F5F5F5;
color: #EC6F74;
font-weight: bold;
padding: 3px 10px;
border-radius: 3px;
}I add the counter class manually on each of my lists.
However, when typing several paragraphs between the list items, I lose the step sequence and all my list points appears with 1.Would you please help me to indicate the new “Start Value”?
I tried to add several of these variables, but I haven’t been successful.Thanks a lot for your help!
Denise
- The topic ‘Counter Step’ is closed to new replies.