Simply Listful
Finding a new way to create ordered list.
<div class="container">
<div class="container">
<h2>Simply Listful</h2>
<ol class="ordered-list">
<li>Overall .fw.png width: 1400 px.</li>
<li>Eye-Strain reducer (same as the container class in Bootstrap): 1230 px.</li>
<li>Overall grid size: 1170 px.</li>
<li>Gutter size: 30 px.</li>
<li>12 column grid size: 70 px.</li>
<li>6 column grid size: 170 px.</li>
<li>4 column grid size: 270 px.</li>
<li>3 column grid size: 370 px.</li>
</ol>
</div>
<div class="copyright">
Created by <a href="http://www.fwpolice.com">The Fireworks Police</a>
</div>
body {
body {
background: #F5F5F5;
font-size: 14px;
}
.container {
width: 500px;
margin: auto;
background: #FFFFFF;
padding: 10px 20px;
margin-top: 10%;
}
h2 {
font-size: 16px;
font-weight: lighter;
background: rgba(255,60,0,0.7);
display: inline-block;
padding: 5px 20px;
margin-left: -20px;
color: #FFFFFF;
letter-spacing: 1px;
text-transform: uppercase;
}
ol.ordered-list {
counter-reset:li; /* Initiate a counter */
margin-left:0; /* Remove the default left margin */
padding-left:0; /* Remove the default left padding */
}
ol.ordered-list > li {
position:relative; /* Create a positioning context */
margin:0 0 6px 2em; /* Give each list item a left margin to make room for the numbers */
padding:4px 8px; /* Add some spacing around the content */
list-style:none; /* Disable the normal item numbering */
border-top:2px solid #ccc;
background:#fff;
cursor: default
}
ol.ordered-list > li:before {
content:counter(li); /* Use the counter as content */
counter-increment:li; /* Increment the counter by 1 */
/* Position and style the number */
position:absolute;
top:-2px;
left:-2em;
box-sizing:border-box;
box-sizing:border-box;
box-sizing:border-box;
width:2em;
/* Some space between the number and the content in browsers that support
generated content but not positioning it (Camino 2 is one example) */
margin-right:8px;
padding:4px;
border-top:2px solid #ccc;
color:#fff;
background:#ccc;
font-weight:bold;
font-family:"Helvetica Neue", Arial, sans-serif;
text-align:center;
}
ol.ordered-list > li:hover, ol > li:hover {
border-color: rgba(255,60,0,0.7);
background-color: #f5f5f5; }
ol.ordered-list > li:hover:before, ol > li:hover:before {
background-color: rgba(255,60,0,0.7);
border-color: rgba(255,60,0,0.7); }
.ordered-list li ol,
.ordered-list li ul {margin-top:6px;}
.ordered-list ol ol li:last-child {margin-bottom:0;}
/*********** IGNORE *************/
.copyright { margin-top: 50px; font-size: 12px; text-transform: uppercase; display: block; text-align: center; }
.copyright a { text-decoration: none; padding: 5px;background: rgba(255,60,0,0.7); color: #FFFFFF; }
.copyright a:hover { background: transparent; color: rgba(255,60,0,0.7); }