I have an ordered list and I\'d like to skip the number output from a particular item.
Traditional output:
1. List item
2. List item
3. List item
4. List
Another option is to use CSS3 counters: demo
HTML
- One
- Two
- Skip
- Three
- Four
CSS
ul {
counter-reset:yourCounter;
}
ul li:not(.skip) {
counter-increment:yourCounter;
list-style:none;
}
ul li:not(.skip):before {
content:counter(yourCounter) ".";
}
ul li.skip:before {
content:"\a0\a0\a0"; /* some white-space... optional */
}