0

I want to start the numbering as a float number for an ordered list. In my below code it starts with a int number.

 <ol type="1">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol> 

Now I want to start this with "1.1". I have tried with start value 1.1 , but it is not working. Is there any way to do this? Thanks...

SumanKalyan
  • 1,681
  • 14
  • 24

1 Answers1

0

You can use counters to do so:

OL { counter-reset: item }
LI { display: block }
LI:before { content: counters(item, ".") " "; counter-increment: item }
Abhijeet
  • 4,069
  • 1
  • 22
  • 38