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 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, this is my first post here and really enjoying the site. I have
Well... simple question, right? But with no so simple answers. In firefox i use
Well, it seems simple enough, but I can't find a way to add a
well i have this messages table with sample values like these: msg_id recipient_id read
Well the subject is the question basically. Are there any version control systems out
Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.
Well behaved windows programs need to allow users to save their work when they
Well, after a long time writing .net programs in C# I started to feel
Well this is incredibly frustrating. After being nagged by Rails that I need to
Well, what is one?

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.