Created
December 27, 2016 18:23
-
-
Save fabiorochafg/571e4580422c2db5aa1db7fa7162eb1b to your computer and use it in GitHub Desktop.
Create children counter
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
.counter-container { | |
counter-reset: number-counter; | |
} | |
.counter-container > div:before { | |
color: #666; | |
content: counter(number-counter, decimal); | |
counter-increment: number-counter; | |
display: inline-block; | |
float: left; | |
height: 30px; | |
line-height: 30px; | |
margin: 7px 5px 0; | |
width: 30px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment