Skip to content

Instantly share code, notes, and snippets.

@gabrielmansour
Last active December 24, 2015 17:09
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 gabrielmansour/6833135 to your computer and use it in GitHub Desktop.
Save gabrielmansour/6833135 to your computer and use it in GitHub Desktop.
Styled numbered bullets.
div { font-family: Helvetica, Arial, sans-serif; width: 50%;}
ol li {
list-style-type: none;
counter-increment: li;
margin-bottom: 0.5em;
margin-left: 3em;
}
ol li:before {
content: counter(li);
position: relative;
top: 0.25em;
width: 1.5em;
height: 1.5em;
line-height: 1.5em;
margin-left: -2.5em;
margin-right: 1em;
text-align: center;
display: inline-block;
white-space: nowrap;
background: green;
color: white;
border-radius: 1000px;
}
<div id="result">
<ol>
<li>One chorus line of people dance till till they make us stop.</li>
<li>Too many kinds of people covered in blood, gore, and gop.</li>
<li>Just one sniff of that fog and your inside out.</li>
</ol>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment