Lets say I have a simple list like so:
- one
- two
&l
Giving display: block to the li elements without .count class is also working.
ul {
list-style-type:decimal;
padding-left: 30px;
}
li:not(.count) {
display: block;
}
Working Fiddle
For older browsers:
ul {
list-style-type:decimal;
padding-left: 30px;
}
li {
display: block;
}
li.count {
display: list-item;
}
Working Fiddle
Another way, if you are planning to change the display state of all li elements, use :after/:before pseudo classes with display as list-item.
Working Fiddle