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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:09:24+00:00 2026-05-26T10:09:24+00:00

Currently i have a css snippet as follows: ul.grid, ul.grid > li { margin:

  • 0

Currently i have a css snippet as follows:

ul.grid, ul.grid > li {
margin: 0; 
padding: 0; 
list-style-type: none;
}

can someone explain to me what is meant by

ul.grid, ul.grid > li ?

Correct me if i am wrong, ul.grid says that grid is a class? Can i some how use id instead of class?

  • 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-26T10:09:24+00:00Added an answer on May 26, 2026 at 10:09 am

    ul.grid means a ul element with class grid.

    ul.grid > li means an li element which is a direct child (and not a further descendant) of a ul element with class grid.

    The comma separating the two means that the following rules will be applied to elements matching both selectors, so in other words, they will be applied to the ul and all of its children li elements.

    Can i some how use id instead of class?

    Yes. Replace the . with a # and make sure the elements have an id:

    ul#grid, ul#grid > li { ... }

    That would apply to, for example:

    <ul id="grid">
        <li></li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have the following CSS for my 4 columns which might grow to
I currently have a drop-line horizontal menu using an unordered list with the following
I have the following css applied to the corresponding html snippet. I would like
I currently have a tab image that I want to re-create in CSS, but
I currently have a CSS <ul><li> dropdown menu that uses the following code. Unfortunately
I currently have all my web based files (.html .css. js) in one directory
Currently have a list of images in an unordered list. <ul id=sponsors><li><img src=.../></li> <li><img
I currently have a very basic JQuery script accompanied by some CSS that helps
I have this Javascript snippet in my application to prevent clickjacking: <script language=javascript type=text/javascript>
I currently have the following CSS: a.enabled:hover { background-color: #f9f9f9; border: 1px solid #ddd;

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.