Last active
December 21, 2019 22:11
-
-
Save konnnn/3ef6bbed76be2f73a2a5c8c5ed08611b to your computer and use it in GitHub Desktop.
Многоуровневый список (1, 2, 3... 1.1, 1.2... 1.1.1, 1.1.2) https://codepen.io/konnn/pen/MWYmKgb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<style> | |
ol { | |
list-style-type: none; | |
counter-reset: item; | |
} | |
li:before { | |
content: counters(item, '.', decimal) '. '; | |
counter-increment: item; | |
} | |
</style> | |
</head> | |
<body> | |
<ol> | |
<li>Раз | |
<ol> | |
<li>Раз</li> | |
<li>Два | |
<ol> | |
<li>Раз</li> | |
<li>Два</li> | |
<li>Три</li> | |
</ol> | |
</li> | |
<li>Три</li> | |
</ol> | |
</li> | |
<li>Два</li> | |
<li>Три</li> | |
</ol> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment