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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:30:40+00:00 2026-06-03T04:30:40+00:00

I am trying to configure a CSS-based drop-down menu. I have added a border

  • 0

I am trying to configure a CSS-based drop-down menu.

I have added a border around <UL> and would like it to be the container for all <li> elemets.
It works fine until one of the <li> is longer than the rest. It pushes outside outside <UL> border.

How can I fix it?

Also, the text withing <li> disappears in IE, while everything works great in FF.

Here’s a DEMO. (hover mouse over items)

  • 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-03T04:30:42+00:00Added an answer on June 3, 2026 at 4:30 am

    You currently have set width:100% to your submenu dropdown, this will only be 100% of the parent container which is smaller than your submenu list item that is overflowing your container due to your white-space:nowrap property. Simply remove that width declaration and your submenu should expand with its inner content.

    #nav ul {
        left: 0;
        position: absolute;
        top: 100%;
        visibility: hidden;
        z-index: 598;
    }
    

    Also, you don’t want to float left your submenu items so you can move that property to where you’re using your child selector.

    Demo: http://jsfiddle.net/DqTyh/8/

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

Sidebar

Related Questions

I'm trying to configure a class with Annotation based configuration in Spring 3, which
I am trying to configure authentication using a few tutorials I have found on
I'm trying configure memcache using Magento. Looking around in the code, I see some
I am trying configure visibility of a command within the context menu using 'visibleWhen'
hi im trying to configure an odbcdatasource in visual studio, I have the connection
Im trying to configure my Ejabberd to run on Ubuntu. I have managed to
So I have this map I am trying to configure so that it takes
I'm trying configure AzMan but I Have got problem with code. Can you explain
I trying to configure an XA DB2 DataSource, xa-datasource (based on http://community.jboss.org/wiki/SetUpADB2Datasource ) using
In trying to configure my mysqld appropriately for my all-InnoDB application environment (mysql DB

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.