Skip to content

Instantly share code, notes, and snippets.

@benjamincharity
Created July 16, 2013 17:14
Show Gist options
  • Save benjamincharity/6010655 to your computer and use it in GitHub Desktop.
Save benjamincharity/6010655 to your computer and use it in GitHub Desktop.
List Prefix'
/**
* List Prefix'
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
font-family: Helvetica Neue;
font-weight: 100;
letter-spacing: .1em;
line-height: 1.4em;
min-height: 100%;
}
ol {
counter-reset: myCounter; /* Counter Code */
display: block;
margin: 10% auto;
width: 250px;
}
li {
color: white;
list-style-type: none;
counter-increment: myCounter; /* Counter Code */
}
li:before {
color: white;
content: "("counter(myCounter)")"; /* Counter Code */
margin-right: .4em;
}
<ol>
<li>Thingamajig 1</li>
<li>Thingaling 2</li>
<li>Thingamabob 3</li>
</ol>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment