Issue
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).
Solution
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>
Answered By - BalusC
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.