Skip to content

Instantly share code, notes, and snippets.

@thedelchop
Created May 8, 2012 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thedelchop/2631839 to your computer and use it in GitHub Desktop.
Save thedelchop/2631839 to your computer and use it in GitHub Desktop.
Using counters inside CSS
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