Custom Ordered Lists

Community Forums Forums Design Tips and Tricks Custom Ordered Lists

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 2 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #13266



    I’m trying to follow the tutorial on styling ordered lists from here:

    As such, this is what I pasted into style.css

    However, the result isn’t anything like what’s in the tutorial. I’ve used the class “circle-list for the ol used here:

    counter-reset: li; /* Initiate a counter */
    list-style: none; /* Remove default numbering */
    *list-style: decimal; /* Keep using default numbering for IE6/7 */
    font: 15px ‘trebuchet MS’, ‘lucida sans';
    padding: 0;
    margin-bottom: 4em;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
    ol ol{
    margin: 0 0 0 2em; /* Add some left margin for inner lists */
    .circle-list li{
    padding: 2.5em;
    border-bottom: 1px dashed #ccc;
    .circle-list h2{
    position: relative;
    margin: 0;
    .circle-list p{
    margin: 0;
    .circle-list h2:before{
    content: counter(li);
    counter-increment: li;
    position: absolute;
    z-index: -1;
    left: -1.3em;
    top: -.8em;
    background: #f5f5f5;
    height: 1.5em;
    width: 1.5em;
    border: .1em solid rgba(0,0,0,.05);
    text-align: center;
    font: italic bold 1em/1.5em Georgia, Serif;
    color: #ccc;
    border-radius: 1.5em;
    transition: all .2s ease-out;
    .circle-list li:hover h2:before{
    background-color: #ffd797;
    border-color: rgba(0,0,0,.08);
    border-width: .2em;
    color: #444;
    transform: scale(1.5);

    What am I doing wrong?

    • This topic was modified 2 years, 10 months ago by  manavecplan.
    • This topic was modified 2 years, 10 months ago by  manavecplan.


    I tested the code from this tutorial and it only works in Firefox which is true based on what i did. Worked fine for me.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.