Created
February 23, 2012 11:19
-
-
Save EkremGungormez/1892430 to your computer and use it in GitHub Desktop.
adding text before list en
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
.MainList{ | |
list-style-type:none; /* delete default counter */ | |
counter-reset:elementcounter; /* create custom counter and set it to 0 */ | |
} | |
.MainList > li:before{ | |
content: "Element" counter(elementcounter) " - "; /* print out "Element " followed by the current counter value */ | |
counter-increment:elementcounter; /* increment counter */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment