Formatting numbered lists

  • Author
    Posts
  • #475357

    I’m trying to add in numbered lists to look like the following:

    A. XXXXXXXXXXXXXX
    B. XXXXXXXXXXXXXX
    C. XXXXXXXXXXXXXX

    I’ve tried the following in the HTML editor:

    <ol type="A">
    
    <li>Text</li>
    <li>Text</li>
    <li>Text</li>

    It works when I switch to visual editor, but when published on the blog it becomes a numbered list, which won’t work for me.

    I’d really appreciate any help!

    The blog I need help with is capclassique.wordpress.com.

    #475467

    1tess
    Moderator Emeritus
    <ol type="A">
     <li>Apples</li>
     <li>Bananas</li>
     <li>Lemons</li>
     <li>Oranges</li>
    </ol>
    #475469

    That attribute is deprecated. You need this:
    <ol style="list-style-type:upper-alpha;">

    And please paste the URL of your blog when asking questions here, or link your username to your blog (as explained in the Sticky 8 Things to Know Before Posting). We usually need that to give a relevant answer.

    #475471

    1tess
    Moderator Emeritus

    Interesting.
    No mention that it is deprecated here:
    http://www.w3schools.com/html/html_lists.asp

    curious where you found the info?

    #475472

    But yes mention here:
    http://www.w3schools.com/tags/att_ol_type.asp

    (And it’s a more general thing, to be expected in newer themes. For instance class=”aligncenter;” instead of align=”center”, etc. etc.)

    #475473

    1tess
    Moderator Emeritus

    Thanks!

    #475510

    timethief
    Member

    @capclassiqueweddings
    Will you please post the complete URL for the blog to which you are referring starting with http://

    #475541

    Thanks so much for your help – will try that. The blog was still private when I asked the question, which is why I didn’t give the blog link, but I also didn’t realise it would be needed. It’s http://capclassique.wordpress.com

    #475550

    It worked – again, THANK YOU!

    #475556

    timethief
    Member

    @capclassiqueweddings
    Lovely blog! :)

    #475557

    Thank you! :)

The topic ‘Formatting numbered lists’ is closed to new replies.