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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:59:49+00:00 2026-05-18T01:59:49+00:00

Well, I’m working an an ul – li multilevel menu and have problem. Firstly,

  • 0

Well, I’m working an an ul – li multilevel menu and have problem.

Firstly, some code (I know it’s not perfect but the crappy div is automatically added by WordPress):

<nav id="page-navigation">
<div class="menu-menu-container">
    <ul id="menu-menu" class="menu">
        <li><a href="#">Home</a></li>
        <li><a href="#">Blog</a></li>
        <li><a href="#">Portfolio</a></li>
        <li><a href="#">Pages</a>
            <ul class="sub-menu">
                <li><a href="#">One Column</a></li>
                <li><a href="#">Two Columns</a></li>
                <li><a href="#">Three Columns</a></li>
            </ul>
        </li>
    </ul>
</div>                

In my stylesheet I’ll be pointing only to page-navigation id & sub-menu class so you can totally skip other ids/classes.

The problem is I can’t change WIDTH of links in sub-menu. I don’t know how. I’m totally lost.

As far as I can see this code overwrites them:

#page-navigation ul li {   
  float: left; 
  padding: 0;
  font-size: 1.2em;
  line-height: 1.2em;
  background-repeat: no-repeat;
  width: 200px;
  height: 65px; 
}

#page-navigation ul li a { 
    display: inline-block;  
    text-align: center; 
    padding: 10px 0 0 0;
    text-shadow: #222 1px 1px 1px;    
    width: 200px;
    height: 65px; 
}

And here’s the code for sub-menu items:

.sub-menu {
    border-radius: 5px;
    border: solid 1px #000;
    box-shadow: 0px 0px 25px #000;
    background-color: #222;
    height: 200px;
    width: 500px; /* THIS LINE DOESN'T WORK */
}

.sub-menu li {
    width: 500px; /* THIS LINE ALSO DOESN'T WORK ! */
}

.sub-menu li a {
    font: 10px Verdana;
    tex-shadow: 1px 1px 0px #000;
    width: 100px; /* doesn't work :) */
    height: 100px; /* doesn't work :) */
}

I know the whole sub-menu is inside of a <li>, but can do nothing with that (default WordPress behavior).

What now? 🙁

Thaanks

  • 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-18T01:59:49+00:00Added an answer on May 18, 2026 at 1:59 am

    You need to specify the full path, the higher level items are currently more specific. Try this:

    #page-navigation ul li .sub-menu li {   
      width: 100px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well im here because i have a problem. i have code that was created
Well, I know there is a lots of posts about it, but I have
Well I know some kinds of UML's diagrams, but I haven't heard about this
Well, this is an interesting problem. I have an ASP.NET MVC3 Intranet application running
Well, I have GridView with editable field like 'TemplateField' with DropDownList. My code: <Columns>
Well, this must be a silly one. Here below is a can-not-be-simpler code in
Well I have a view of this type of hierarchy Main View (having some
Well friends, I have got this query which works but is very long for
Well, I have this bit of code that is slowing down the program hugely
Well, I didn't really know how to call this... I have been surfing PayPal's

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.