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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:35:07+00:00 2026-06-11T03:35:07+00:00

I am new to css and I am working on a menu bar for

  • 0

I am new to css and I am working on a menu bar for a website and I know what the problem is just don’t know how to fix it.

The nav bar is designed to hide the element Left -9999 off the screen until a hover occurs then it sets the left to a -0. However, one of my tabs “Links” has a 5 column body that is going off the screen to the right. I need a way to move that left:-387px. I can’t do style=”left:-387;” directly on the div because then it doesn’t hide the menu when not in use. Could someone please help me on a solution to fix this menu item?

I would normally post the script here or use jsfiddle but to much code for either. However you can find the site here:

http://gdisinc.com/barker/default.php

Here is the one of the issues with it:

.dropdown_1column {width: 175px;}
.dropdown_2columns {width: 280px;}
.dropdown_3columns {width: 420px;}
.dropdown_4columns {width: 560px;}
.dropdown_5columns {width: 700px;}

#menu li:hover .dropdown_1column, 
#menu li:hover .dropdown_2columns, 
#menu li:hover .dropdown_3columns,
#menu li:hover .dropdown_4columns,
#menu li:hover .dropdown_5columns {

   /* I need this to be -387 but if I change this it will mess up all menus. */
   left:-1px; 
   top:auto;
}

Here is where we hide the menu items

.dropdown_5columns {

/* This places the body of the menu item right below the menu bar. */
margin-top: 12px;

/*Containers with different sizes will hold the entire drop down content. I've chosen the tag names according to the number of columns they will contain. To hide the drop downs, we'll use absolute positioning with a negative left margin: */

float:left;
position:absolute;
left:-999em; /* Hides the drop down */
text-align:left;

border:1px solid #777777;
border-top:none;

/* Gradient background
The background fallback color is the same as the one used for the menu items. Modern browsers will display a gradient starting with #EEEEEE at the top (to match the parent menu item gradient) and ending with #BBBBBB at the bottom: */
background: #F4F4F4;
background: -moz-linear-gradient(top, #EEEEEE, #BBBBBB);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#EEEEEE), to(#BBBBBB));

/* Rounded Corners 
We'll again use rounded corners, except for the top left one: */
-moz-border-radius: 0px 0px 5px 5px;
-webkit-border-radius: 0px 0px 5px 5px;
border-radius: 0px 0px 5px 5px;
 }

Here is where I got the tutorial: http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-kick-butt-css3-mega-drop-down-menu/

I am pretty sure the fix is to create a separate class for just the “Links” link but I don’t know how to do that.

  • 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-11T03:35:09+00:00Added an answer on June 11, 2026 at 3:35 am

    Leave your left property to 0 and use display block instead

    #menu li:hover .dropdown_1column, 
    #menu li:hover .dropdown_2columns, 
    #menu li:hover .dropdown_3columns,
    #menu li:hover .dropdown_4columns,
    #menu li:hover .dropdown_5columns {
    
       /* all menus are display:none by default */
       display:block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are working on a new web project that is just loose html/css/js files
I am new to css and I have a menu bar that I am
New to jquery. The desire is to show/hide horizontal menu bar items. I have
I am new in CSS so please help me in this problem. I hope
I have been working on a new menu and I'm almost there, but the
I'm working on a website, and I've encountered a problem for which I cannot
New to css. I have a div element, in which there are multiple links
I am new at CSS and just wondering if it is possible to have
I am not new to CSS, I'm just not that adept with it. I
I'm working on a new portfolio site which has a menu that looks like

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.