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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:25:41+00:00 2026-06-01T05:25:41+00:00

I look at example of dropdown menu here . Here is simplified jsfiddle example.

  • 0

I look at example of dropdown menu here. Here is simplified jsfiddle example. I want to build my own styled HTML element base on it. All it’s ok. But in my implementation I need to wrap <ul class="dropdown">...</ul> with div styled with the CSS like this:

border: 2px solid green;
overflow: auto;

And in this case the ul with submenu stratch this div (as I understand) and that’s why the scrollbars appeared. Here is simplified jsfiddle example.

But if use the following css for outer div – all is ok:

border: 2px solid green;
height: 35px;

Here is jsfiddle example.

Could you help me to understand – why I have problems with “overflow:auto” case?

TIA!

  • 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-01T05:25:42+00:00Added an answer on June 1, 2026 at 5:25 am

    You don’t want to give the container an overflow that is not visible, since that will hide your drop-down. Further, there’s a lot of floating going on, that can now be inline-block with IE8+ support.

    I forked your Jsfiddle and applied the CSS fixes at the bottom of the CSS Section. Is this what you’re looking for: http://jsfiddle.net/rgthree/VFZRB/

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

Sidebar

Related Questions

Take a look at this example: http://www.extjs.com/deploy/dev/examples/multiselect/multiselect-demo.html On it, there are components rendered against
I want to have my site urls look like http://example.com/place/info?var=info&morevars=ifneeded Place and info are
Normally my URLs look like the standard: www.example.com/controller/action Now I want to setup my
How to clear float:left & float:right on CSS You may look an example here
I have the following: http://jsfiddle.net/oshirowanen/2vqvD/ How do I dynamically position the .dropdown element no
For the dropdown menu, is there a way to modify the look and feel?
Take a look at example. <button id=go>Expand</button> <button id=go1>Collapse</button> I want if someone press
I have a problem with internet explorer 6 and 7, please look this example
Take a look at the example code... NodeList folderNodes = document.getElementsByTagName(Folder); DocumentFragment node =
Please take a look at this example: #include <iostream> #include <vector> #include <string> using

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.