Is there a way to not display the number for a single li in an ol. It's not an issue if it still contributes to the count of the list (I know this might seem like a strange request).
Adding the "list-style: none" CSS class to the unordered list (<ul>) or ordered list (<ol>) tag removes any bullet or number.
Roman Numeral LI is equal to 51 and XLIII is 43.
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The OL element defines an ordered list. The element contains one or more LI elements that define the actual items of the list. Unlike with an unordered list (UL), the items of an ordered list have a definite sequence. Items in an ordered list are numbered by the browser.
Yes, just set the CSS list-style-type
property to none
on the particular <li>
.
li.nostyle { list-style-type: none; }
<ol> <li>one</li> <li>two</li> <li class="nostyle">three</li> <li>four</li> </ol>
This will hide your first ordered list number.
This will look strange since your hiding your first number in the ordered list. This is one possible solution through CSS
ol li:first-child { list-style:none } <ol> <li>1</li> <li>2</li> <li>3</li> </ol>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With