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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:06:59+00:00 2026-05-29T09:06:59+00:00

I’m working on a website, and I’ve encountered a problem for which I cannot

  • 0

I’m working on a website, and I’ve encountered a problem for which I cannot find any kind of solution online, so I’d appreciate your help.

I’ve designed a drop-down menu, and this is the problem: if the page is zoomed in, it breaks into 2 lines (not desired as it’s a drop-down menu!), but if I set a minimum-width for the menu, as the position is set to absolute, I cannot scroll to the right and the menu just goes out of the screen. It doesn’t work neither if I set a minimum-width for the body tag, as it allows me to scroll the body but the menu stays out! It’s frustrating

The position must be kept to absolute, otherwise I’d need a whole method to keep it on top and would appreciate your help, so I’m looking for a solution that let’s me scroll to the right if the screen is really zoomed in, as in smartphones.

Here’s the menu code (not all of it ofc, as it’s too long, but the main parts. To see more, ask for it or visit the page and see the source code).

Website: http://newfutureuniversity.org/

HTML:

...
<body>
    <div id="container">
        <div class="menu" >
            <ul>
                <li><a href="http://newfutureuniversity.org/">New Future</a></li>
                <li><a href="http://newfutureuniversity.org/learn/degree/">Learn</a>
                <ul class="bottom">
                ...
                </ul>
                </li>
...

CSS:

body                /* Changes the style for the whole body */
    {
    position:absolute;
    margin:0px;         /* Avoids margin in the whole page */
    padding:0px;
    border:0px;
    background-color: #EEEEEE;  /* Default background color, light grey */
    height:100%;            /* Vertically complete */
    width:100%;
    min-width:400px;
    min-height: 100%;
    color: #333;            /* Letters color */
    }

#container          /* The container has the header, main and footer inside */
    {
    position:relative;
    margin:0px;
    padding:0px;
    min-height: 100%;       /* Avoids the footer to go up */
    height: auto !important;
    height: 100%;
    margin: 0px auto -51px;
    }
.menu
    {
    position: fixed;
    top:0px;
    left:0px;
    opacity:0.3;
    filter:alpha(opacity=30);   /* For IE8 and earlier */
    width:100%;
    min-width:400px;
    border:none;
    border-bottom:1px solid gray;
    margin:0px;
    padding:0px;
    font-size:18px;
    z-index:3;
    }

.menu ul
    {
    background:#DDD;
    height:26px;
    list-style:none;
    margin:0px;
    padding:0px;
    z-index:3;
    }
    .menu li{
        width:24.5%;
        min-width:93px;
        float:left;
        padding:0px;
        margin: 2px 0px 2px 0.5%;
        }
...

EDIT:
You need to unmaximize and to zoom to see the problem in a desktop browser.

  • 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-29T09:07:01+00:00Added an answer on May 29, 2026 at 9:07 am

    I am not especially sure what you mean by breaking into two lines. I have looked at your site on Firefox, Chrome, IE, Opera and on my iPhone and was unable to reproduce your problem. The menu simply overflowed off the screen and out of view for the final item “Get In”. I fear you may however have a design problem. I would not encourage you to build ‘one-site-for-all’ but target your audience.

    Your desired solution is relatively impossible to do with your menu design. You are working with fixed/absolute position and positioning it relative to the window/screen view. When you zoom your screen ‘floats ‘ around on the webpage, but the position of absolute positioned objects are relative to the screen(not the page) and will not move.

    You ‘could solve’ this with js script that would allow modifications in the positioning based on scale, but I advise against it. I had tried to solve a similar problem and this quickly became the device specific debugging is a nightmare worst then the browser nightmare we struggle with today.

    As for solutions, I would strongly recommend you look into a few different frameworks. First being an CSS solution, lessframework. It gives you a simple framework to use for multi-device compatible layouts without digging into js. On the other hand if JavaScript isn’t an issue checkout jQuery Mobile. You can produce drop-down menus with nice transition effect easily that are very similar to what you were creating.

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

Sidebar

Related Questions

I used javascript for loading a picture on my website depending on which small
Seemingly simple, but I cannot find anything relevant on the web. What is the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.