Last active
December 24, 2015 17:09
-
-
Save gabrielmansour/6833135 to your computer and use it in GitHub Desktop.
Styled numbered bullets.
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
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; | |
} |
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
<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