Created
May 8, 2012 01:27
-
-
Save thedelchop/2631839 to your computer and use it in GitHub Desktop.
Using counters inside CSS
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
form { | |
counter-reset: form-number; | |
.control-group { | |
&:before{ | |
@include border-radius(20px); | |
content: counter(form-number); | |
counter-increment: form-number; | |
background: white; | |
color: $gold; | |
float: left; | |
font-size: 24px; | |
height: 20px; | |
margin: 3px 15px 0 0; | |
padding: 10px; | |
text-align: center; | |
width: 20px; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment