Overflown Ordered List Does Not Increment
Why does an ordered list not increment when the list item has hidden overflow? Here's a simplified example. My actual application needs hidden overflow because the list items have
Solution 1:
ol {
margin: 001em0;
counter-reset: item;
}
olli {
list-style: decimal inside none;
background: pink;
display:inline-block;
border-bottom: 3px dotted #000;
margin-left: 1em;
}
ollidiv {
background: #999;
width: 20em;
height: 2em;
margin: 0.2em;
}
li:before {
display: inline-block;
content: counter(item);
counter-increment: item;
width: 2em;
margin-left: -1em;
}
Post a Comment for "Overflown Ordered List Does Not Increment"