Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 125117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:06:29+00:00 2026-05-11T05:06:29+00:00

How can I left-align the numbers in an ordered list? 1. an item //

  • 0

How can I left-align the numbers in an ordered list?

1.  an item // skip some items for brevity  9.  another item 10. notice the 1 is under the 9, and the item contents also line up 

Change the character after the number in an ordered list?

1) an item 

Also is there a CSS solution to change from numbers to alphabetic/roman lists instead of using the type attribute on the ol element.

I am mostly interested in answers that work on Firefox 3.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:06:29+00:00Added an answer on May 11, 2026 at 5:06 am

    This is the solution I have working in Firefox 3, Opera and Google Chrome. The list still displays in IE7 (but without the close bracket and left align numbers):

    ol {   counter-reset: item;   margin-left: 0;   padding-left: 0; } li {   display: block;   margin-bottom: .5em;   margin-left: 2em; } li::before {   display: inline-block;   content: counter(item) ') ';   counter-increment: item;   width: 2em;   margin-left: -2em; }
    <ol>   <li>One</li>   <li>Two</li>   <li>Three</li>   <li>Four</li>   <li>Five</li>   <li>Six</li>   <li>Seven</li>   <li>Eight</li>   <li>Nine<br>Items</li>   <li>Ten<br>Items</li> </ol>

    EDIT: Included multiple line fix by strager

    Also is there a CSS solution to change from numbers to alphabetic/roman lists instead of using the type attribute on the ol element.

    Refer to list-style-type CSS property. Or when using counters the second argument accepts a list-style-type value. For example the following will use upper roman:

    li::before {   content: counter(item, upper-roman) ') ';   counter-increment: item; /* ... */ 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I right align (and left align?) a block of numbers or text
I'm trying to build a HQL that can left join values from a collection,
How can I set left and right buttons on a DIV to scroll the
Are there any rich editors for WinForms that support right-to-left and can export to
Can I apply both position: relative and float: left on one element? Like this:
How can I do a join such as : LEFT JOIN table1 t1 ON
Can anybody explain in detail how to implement a left outer join in LINQ?
How can I get linq pad to run my left join as show below?
How can i make my Java Swing GUI Components [Right To Left] for Arabic
How can I pad a string with spaces on the left when using printf?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.