Skip to content

Instantly share code, notes, and snippets.

@Onepo1ntFive
Last active September 19, 2017 07:05
Show Gist options
  • Select an option

  • Save Onepo1ntFive/a0944151e4b1a66a530d8a5cbffa966b to your computer and use it in GitHub Desktop.

Select an option

Save Onepo1ntFive/a0944151e4b1a66a530d8a5cbffa966b to your computer and use it in GitHub Desktop.
ol {
counter-reset: item;
margin-left: 0;
padding-left: 0;
}
li {
display: block;
margin-bottom: .5em;
margin-left: 2em;
}
li:before {
display: inline-block;
content: counter(item) ") ";
counter-increment: item;
width: 2em;
margin-left: -2em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment