LIST - Ordered OR Unordered - Checkmark In Circle
by bizamajig
HTML
<ol>
<li>List item number <br />one has some text to go along with it.</li>
<li>List item number two has some text tList item number <br />one has some text to go along with it.o go along with it as well.</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to List item number <br />one has some text to go along with it.go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
<li>List item number three has some text to go along with it too, what did you expect?</li>
</ol>
CSS
ol {
margin: 0 0 12px 5px;
padding: 0 0 0 30px;
display: block;
list-style: none;
overflow: hidden;
}
ol li {
margin: 0 0 12px 0;
position: relative;
}
body:nth-of-type(1) ol li:before {
content:"\00a0"; /* fill it with a blank space */
display: block; /* make it a block element */
float: left;
position: absolute;
left: -26px;
font: bold 12px sans-serif;
text-align: center;
color: #ffffff;
line-height: 18px;
width: 18px;
height: 18px;
background: red;
-moz-border-radius: 999px;
border-radius: 999px
}
body:nth-of-type(1) ol li:after {
/* Position it on top of the circle */
margin-top: -4px;
position: absolute;
left: -20px;
top: 9px;
/* Make it a small rectangle so the border will create an L-shape */
width: 3px;
height: 6px;
/* Add another block-level blank space */
content: "\00a0";
display: block;
/* Add a white border on the bottom and left, creating that 'L' */
border: solid #fff;
border-width: 0 2px 2px 0;
/* Rotate the L 45 degrees to turn it into a checkmark */
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
-ms-transform: rotate(45deg);
}