Ordered lists

Discussion in 'WordPress' started by webmasterplace, May 8, 2010.

Thread Status:
Not open for further replies.
  1. #1
    THIS POST CAN BE CLOSED
    I HAVE FOUND THE SOLUTION (it was simple cache problem).



    Hi,

    I'm trying to add ordered lists to my post. That works great, but it's currently in this format:

    A.
    B.

    And I want

    1.
    2.

    I've tried adding <ol type="1"> but that doesn't work. I've take a look in my theme css and I can't find it either. I changed

    .entry ol li { list-style-type: upper-latin; }
    .entry ol li ol li { list-style-type: lower-latin; }

    to

    .entry ol li { list-style-type: decimal; }
    .entry ol li ol li { list-style-type: decimal; }

    and it does nothing.

    Anyone a solution?

    Thanks!
     
    Last edited: May 8, 2010
    webmasterplace, May 8, 2010 IP
  2. otshare

    otshare Peon

    Messages:
    70
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    check this code. it works.

    <html>
    <head>
    <style type="text/css">
    ul.a {list-style-type:circle;}
    ol.b {list-style-type:decimal;}
    </style>
    </head>

    <body>
    <p>Example of unordered lists:</p>

    <ul class="a">
    <li>Coffee</li>
    <li>Tea</li>
    <li>Coca Cola</li>
    </ul>

    <p>Example of ordered lists:</p>

    <ol class="b">
    <li>Coffee</li>
    <li>Tea</li>
    <li>Coca Cola</li>
    </ol>

    </body>
    </html>
     
    otshare, May 8, 2010 IP
Thread Status:
Not open for further replies.