Initially, I thought I could use :first-letter in CSS, legacy browser support aside, but I don't think the bullet numbers technically exist in the DOM. Assume I'm not going to use bullet list images or background images.
So something like:
would become
  1 Apples
   2 Bananas
   3 Oranges
Adding the "list-style: none" CSS class to the unordered list (<ul>) or ordered list (<ol>) tag removes any bullet or number.
In some cases, we are required to remove the bullets of unordered and ordered lists. The removal of the list bullets is not a complex task using CSS. It can be easily done by setting the CSS list-style or list-style-type property to none.
From this answer, it appears that the answer is:
ol {      counter-reset: item;     list-style-type: none; } ol li { display: block; } ol li:before {      content: counter(item) "  ";      counter-increment: item; } SEE ALSO: http://jsbin.com/ukojo4/
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