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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:44:03+00:00 2026-05-29T22:44:03+00:00

Say, for example purposes I wanted a list of items that each had a

  • 0

Say, for example purposes I wanted a list of items that each had a different colour bullet point for each item.

The kicker is I need to do this relatively semantically & automatically, avoiding a user having to add a class or a piece of HTML whilst keeping the colour of the text black.

An example:

  • List item with a red bullet
  • List item with a blue bullet
  • List item with a green bullet
  • etc.

It poses an interesting problem – How would one go about do this so that a user can simply add a list of items and my code updates them accordingly.

  • 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-29T22:44:04+00:00Added an answer on May 29, 2026 at 10:44 pm

    Remove the default bullets, and add bullet characters (U+2022 BULLET or some other) as generated content. You can style the generated content separately. This is flexible and requires no extra markup (beyond some markup that distinguishes between different items, obviously) but has the drawback of failing on old versions of IE (no support to generated content).

    Assuming markup

    <ul class="mixed">
      <li class="red">One.</li>
      <li class="green">Two.</li>
    </ul>
    

    the style sheet could be

    ul.mixed {
      list-style-type: none;
    }
    ul.mixed li:before {
     content: "\2022";
     padding-right: 0.5em;
    }
    li.red:before {
      color: red;
    }
    li.green:before {
      color: green;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say for example you had a shell script that utilises inotifywait in the following
We're developing an application in ASP.NET. As an example, for discussion purposes, let's say
I have a simple Rails app and for example purposes we'll say I have
I have a page on my site, for purposes of this example lets say
Say I wanted to write a local web server that listened on a random
Let's say, on a ColdFusion site, that the user has navigated to http://www.example.com/sub1/ The
How do you elegantly format a timespan to say example 1 hour 10 minutes
I have 2 websites, lets say - example.com and example1.com example.com has a database
Say for example I have the following styles: #HorizNav ul li a.active:link { background-color:
Say for example this is my code: $query = SELECT * FROM ...; $exec_query

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.