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

The Archive Base Latest Questions

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

Should the list styling properties go on the ul element or the li elements?

  • 0

Should the list styling properties go on the ul element or the li elements?

I have never seen lists with different little icons to the left of them (within the same ul), but I have seen the property used on both elements before in my travels.

Which one is correct?

  • 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-11T20:45:48+00:00Added an answer on May 11, 2026 at 8:45 pm

    It should go on the ul/ol, cf. http://www.w3.org/TR/CSS2/generate.html#list-style

    Edit: Near the bottom ( http://www.w3.org/TR/CSS2/generate.html#propdef-list-style ) you will find a discussion of the issue. It boils down to:

    Inheritance will transfer the ‘list-style’ values from OL and UL elements to LI elements. This is the recommended way to specify list style information.

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

Sidebar

Related Questions

I have a style for styling <a> elements in list items in a #navigation
My little site should be pooling list of items from a table using the
I have a stored procedure that ideally should be able to accept a list/table
According to FXCop, List should not be exposed in an API object model. Why
IMHO Radio buttons should retire. The ComboBox (Drop-Down list mode) should always be preferred.
The following javascript should setup an interval so a new item from the list
There is a requirement to have not-so-trivial dynamic list, each record of which consists
One CSS rule I have learned is that you should use the relative em
Should I start with Django or JavaScript?
Should the folders in a solution match the namespace? In one of my teams

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.