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 6154659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:17:59+00:00 2026-05-23T20:17:59+00:00

So I am doing a custom ol li list, and i really get confused

  • 0

So I am doing a custom ol li list, and i really get confused with shortcuts css wise for ol , ul and li stuff.

If i tell you what I want, and provide some sample code could someone help please.

Ok so I am after a numbered list like so…

<ol>
    <li>Dave Jones<span class="searchTotals">189 searches</span></li>
    <li>Debs<span class="searchTotals">34 searches</span></li>
    <li>Tarbutt<span class="searchTotals">211 searches</span></li>
</ol>

What I want to do is NOT repeat the span class within the li element, so perhaps you could help.

Also I wanted to number style each li.

In so far as put a circle around each number..

Here is some css for the numbers.

background: none repeat scroll 0 0 #ec008c;
border-radius: 1em 1em 1em 1em;
color: #FFFFFF;
display: inline-block;
float: right;
font-family: inherit;
font-size: 10px;
font-weight: bold;
line-height: 1em;
margin-left: 0.5em;
padding: 0.35em 0.5em;
text-align: center;
text-decoration: none;

Here is some css for the SPAN class.

float:right;
color:#3399ff;

Trying to get it to look like this:

enter image description here

  • 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-23T20:17:59+00:00Added an answer on May 23, 2026 at 8:17 pm

    if you are looking to float all the text in the div left without using span tags you can use this: (can’t select just part of the text with CSS)

    ol li {
       float:left;
       color:#3399ff;
    }
    

    If you want to have numbers with circles around them with the li, you’re going to have to use images and use the background:url() property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm overriding the drawRect: method in a custom UIView, and I'm doing some custom
I can't seem to get a custom action working. I might be doing this
I want to make a custom List View having Two TextViews and a radio
I'm creating some custom BBcode for a forum. I'm trying to get the regular
I have custom list in sharepoint and I am doing validation through sharepoint designer
I'm doing custom drawing in datagridview cells and I have items that can vertically
I'm doing a custom 404 page for a large website that's undergoing a redesign.
I am doing a custom control (inherited from VisualBasic.PowerPacks.LineShape ), that should be painted
Lately I've been doing a lot of custom styling in SharePoint by modifying the
I'm writing a custom TCP server and client and on doing a ton of

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.