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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:32:48+00:00 2026-05-11T12:32:48+00:00

I have css like this: .done {list-style-image:url(‘images/tick.gif’)} .notdone {list-style-image:url(‘images/cross.gif’)} And html like this: <ul>

  • 0

I have css like this:

.done {list-style-image:url('images/tick.gif')} .notdone {list-style-image:url('images/cross.gif')} 

And html like this:

<ul>     <li class='done'>Done</li>     <li class='notdone'>Not Done</li> </ul> 

Works great on IE6 and FF. Each li item has a different image for the bullet. But all of the docs I see on list-style-image says it should be applied to to the ul tag.

Is there a proper or standards-based way of doing what I am trying to do, or is this it?

EDIT: http://www.w3.org/TR/CSS21/generate.html

It looks like it doesn’t say that I CAN’T use list-style-image on an li tag, but the examples don’t show that.

  • 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-11T12:32:49+00:00Added an answer on May 11, 2026 at 12:32 pm

    The CSS 2.1 standard gives examples where list-style is applied directly to an li.

    Although authors may specify ‘list-style’ information directly on list item elements (e.g., ‘li’ in HTML), they should do so with care.

    Followed by:

    ol.alpha li   { list-style: lower-alpha } /* Any 'li' descendant of an 'ol' */  ol.alpha > li { list-style: lower-alpha } /* Any 'li' child of an 'ol' */ 

    So I would draw the conclusion that it is OK to apply list-style-type or list-style-image to list items directly, as long as you are careful and understand the cascade of your CSS rule.

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

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer As far as I know, this will not make Maven… May 11, 2026 at 2:01 pm
  • added an answer I always do your option 1, and as far as… May 11, 2026 at 2:01 pm
  • added an answer Something alongs: rowSum == 3 || columnSum == 3 ||… May 11, 2026 at 2:01 pm

Related Questions

I have a CSS like this ul { list-style-image:url(images/bulletArrow.gif); } ul li { background:
I have a CSS class called grid which I place on my tables. I
Are .css files always needed? Or may I have a .css basic file and
I have written a CSS sprite auto-generator which takes selected images out of the
I have written some CSS which targets elements using the parent > child selector.
I have css like this: .done {list-style-image:url('images/tick.gif')} .notdone {list-style-image:url('images/cross.gif')} And html like this: <ul>
I want to get smarter in AJAX, but not sure which way to go.
How should CSS 'margin' and 'padding' be used for vertical inter-paragraph spacing: Can the
I got to thinking about font (typeface) selection today. A site I did for
How can I get superscript done, only in CSS? I have a stylesheet where

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.