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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:37:56+00:00 2026-06-07T12:37:56+00:00

Googling and searching stack overflow did not return any results that I could recognize,

  • 0

Googling and searching stack overflow did not return any results that I could recognize, so forgive me if this has been asked before…

I have drop down main menu which uses lists as its basis. The problem is, the lists are very wide, and they do not indent far enough when expanded. So, this is my problem! How do I make the indent amount on lists larger via CSS?

  • 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-07T12:37:58+00:00Added an answer on June 7, 2026 at 12:37 pm

    to indent a ul dropdown menu, use

    /* Main Level */
    ul{
      margin-left:10px;
    }
    
    /* Second Level */
    ul ul{
      margin-left:15px;
    }
    
    /* Third Level */
    ul ul ul{
      margin-left:20px;
    }
    
    /* and so on... */
    

    You can indent the lis and (if applicable) the as (or whatever content elements you have) as well , each with differing effects.
    You could also use padding-left instead of margin-left, again depending on the effect you want.

    Update

    By default, many browsers use padding-left to set the initial indentation. If you want to get rid of that, set padding-left: 0px;

    Still, both margin-left and padding-left settings impact the indentation of lists in different ways. Specifically: margin-left impacts the indentation on the outside of the element’s border, whereas padding-left affects the spacing on the inside of the element’s border. (Learn more about the CSS box model here)

    Setting padding-left: 0; leaves the li’s bullet icons hanging over the edge of the element’s border (at least in Chrome), which may or may not be what you want.

    Examples of padding-left vs margin-left and how they can work together on ul: https://jsfiddle.net/daCrosby/bb7kj8cr/1/

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

Sidebar

Related Questions

I've been Googling and searching stack overflow all over, but is there any way
I did do some googling and searching on this site but did not find
I've been Googling and searching Stack Overflow for a while, but I just can't
I am searching for any crypto library that provides SHA-512 hash. Googling around I
I've been searching & googling a lot about this question, and I already know
Googling has been difficult because I can't get results specific enough - wondering if
Googling this does little good, as you can imagine. Does anyone have resources that
I have tried googling and searching for this issue on SO - but have
Aight, did a bit of Googling and searching here, the only question I found
I tried googling and searching on stack but I didn't find anything :-( (

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.