Skip to content

Instantly share code, notes, and snippets.

@fabiorochafg
Created December 27, 2016 18:23
Show Gist options
  • Save fabiorochafg/571e4580422c2db5aa1db7fa7162eb1b to your computer and use it in GitHub Desktop.
Save fabiorochafg/571e4580422c2db5aa1db7fa7162eb1b to your computer and use it in GitHub Desktop.
Create children counter
.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