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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:19:20+00:00 2026-06-09T07:19:20+00:00

I was having a trouble of getting ul markers to fall inside the margin.

  • 0

I was having a trouble of getting ul markers to fall inside the margin. I fixed it by changing

#contents ul {
border:solid;
    font-size:85%;
margin-left: 0px;
padding-left: 2.5em;
    max-width: inherit;
list-style-position: inside;
}

to

ul {
  /* rules */
}

Even though the ul in question is given the id of ‘contents’ it seems the rules only get passed down to its children? Or is there another reason for this mishap? I’d like to be able to limit the ul ruleset to the ‘contents’ id if possible.

  • 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-06-09T07:19:23+00:00Added an answer on June 9, 2026 at 7:19 am

    With

    #contents ul
    

    You’re saying any <ul> that is a descendent of and element with id="contents" should be applied the styles. But you say you have

    <ul id="contents">
    

    so you can do

    ul#contents {
      /* your rules */
    }
    

    Though this shouldn’t be necessary to qualify the selector with an element; #contents alone should be enough.

    If you want both the <ul> with id="contents" and it’s descendents, you can do

    #contents, #contents ul {
      /* your rules */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble getting my LI elements to align closer to the left
I am having trouble getting the text to center inside of a list item.
I am having trouble getting the contents of JSON object from a JQery.ajax call.
I am having trouble getting inside my Search WebMethod from my JQuery call. Maybe
I'm having trouble getting my markers to show up using Google Maps API V3.
im having trouble getting a string (containing a URL) from one activity to another.
Im having trouble getting my JTable that im using to display either check boxes
I'm having trouble getting the CanExecute method of my command to work property. I've
I'm having trouble getting Tire working using ElasticSearch with the Bonsai addon on the
I'm currently having trouble getting example code for using tweepy to access Twitter's Streaming

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.