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

  • Home
  • SEARCH
  • 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 4612994
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:28:58+00:00 2026-05-22T01:28:58+00:00

I think the answer to this question is no… but does anyone know of

  • 0

I think the answer to this question is no… but does anyone know of a an HTML/CSS way to create an ordered list without a period after the numbers? Or, alternatively, to specify the separator character?

Ideally I don’t want to do list-style-image with a different class for each number, but that’s all I’ve been able to think of so far… That seems terribly unsemantic.

IE:

Default Style:
1. ______
2. ______
3. ______

Desired Style:
1  ______
2  ______
3  ______

Alternate Style:
1) ______
2) ______
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. Editorial Team
    Editorial Team
    2026-05-22T01:28:59+00:00Added an answer on May 22, 2026 at 1:28 am

    This is perfectly possible to do with just CSS (2.1):

    ol.custom {
      list-style-type: none;
      margin-left: 0;
    }
    
    ol.custom > li {
      counter-increment: customlistcounter;
    }
    
    ol.custom > li:before {
      content: counter(customlistcounter) " ";
      font-weight: bold;
      float: left;
      width: 3em;
    }
    
    ol.custom:first-child {
      counter-reset: customlistcounter;
    }
    

    Keep in mind that this solution relies on the :before pseudo-selector, so some older browsers — IE6 and IE7 in particular — won’t render the generated numbers. For those browsers, you’ll want to add an extra CSS rule that targets just them to use the normal list-style:

    ol.custom {
      *list-style-type: decimal; /* targets IE6 and IE7 only */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I may know the answer to this question but I'm actually looking
I think I already know the answer to this question is No, but I
I think the answer to this question is no but I do not have
Ok, I know the answer for this question may not be objective but I
I think I already know the answer to this question because it seems, uh,
I think the answer to this question is so obivous that noone has bothered
I think I know the answer, but I would like to bounce around some
(I'm fairly certain the answer to this question is quite simply no but I
I assume that there is probably no satisfactory answer to this question, but I
In Windows, that is. I think the answer to this question is that I

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.