0

How to put a list inside a list?

I want a list like this one : 1. blue 1.1. light blue 1.2. dark blue 2. red 2.1. light red 2.2. dark red ... etc

25th Nov 2016, 8:48 PM
Mohammed Damene
Mohammed Damene - avatar
4 Answers
+ 2
Create an ordered list, create a li and then create another ol under the li.
25th Nov 2016, 10:57 PM
Ben
Ben - avatar
+ 2
yes Ben said right <ol >Blue <li><ul> <li> 1.1 Light Blue ... <style> ul{ list-t ype: none;}</style>
26th Nov 2016, 12:46 PM
Sandeep Chatterjee
+ 2
<body> <ol type="1"> <li>Blue</li> <ol type="i"> <li>Light Blue</li> <li>Dark Blue</li> </ol> <li>Red</li> <ol type="i"> <li>Light Red</li> <li>Dark Red</li> </ol> </ol> </body> Output : 1. Blue i. Light Blue ii. Dark Blue 2. Red i. Light Red ii. Dark Red
1st Dec 2016, 5:38 AM
Debalina Mukherjee
Debalina Mukherjee - avatar
0
thanx, both of you ;-)
26th Nov 2016, 2:10 PM
Mohammed Damene
Mohammed Damene - avatar