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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:19:09+00:00 2026-06-09T23:19:09+00:00

At the beginning i was looking at how to create a mega drop down

  • 0

At the beginning i was looking at how to create a mega drop down navigation therefore i went around the net researching and came about to realise that defining the width and position of each dropdown is the best. sorry if you couldn’t understand but I found a js.fiddle with it too.

JS fiddle for the drop down navigation: http://jsfiddle.net/Pnn6V/9/.

However, i realise that the headings on the navigation (eg. Home, 5 columns , etc) are not evenly spread out as they are spread out be fixed px. therefore i went to research on how can i evenly spread out the headings. Then i found that actually by using CSS display: inline with text justify I can do the trick. Sorry if it confuses you. But i found a js fiddle for this too.

JS fiddle for evenly spread out navigation using css: http://jsfiddle.net/NGLN/dqBNr/3/

I tired combining them together by adding the span tag and also the justify properties, I also changed the display to inline and inline-block but the whole thing messed up.

I was wondering if anyone have any idea what could i do to combine this 2 sets of codings together? Thanks a plenty. If you have any doubt of what i am talking about please kindly let me know so i can try to rephrase it. Thanks.

  • 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-09T23:19:11+00:00Added an answer on June 9, 2026 at 11:19 pm

    So the headings are perfectly spread out, I assume you’re talking about when you change them that the drop-downs get offset strangely. This issue is being cased because of these rules:

    #menu li:hover .dropdown_1column
    {
        left:-841px;
        top:auto;
    }
    #menu li:hover .dropdown_2columns
    {
        left:-2px;
        top:auto;
    } 
    #menu li:hover .dropdown_3columns
    {
        left:-736px;
        top:auto;
    }
    #menu li:hover .dropdown_4columns
    {
        left:-248px;
        top:auto;
    }  
    #menu li:hover .dropdown_5columns {  
        left:-110px;  
        top:auto;  
    }
    

    There are a couple of ways you could fix this. One by attaching to the onhover event using JavaScript/jQuery and setting the left to the correct position (#menu’s left).

    The other nicer way is to use the CSS position property to it’s fullest. I got this jsfiddle to work fine. I made the following changes:

    • Added position:relative; to #menu
    • Removed position:relative; from #menu li
    • Added position:absolute; to .dropdown_1column, .dropdown_2columns, .dropdown_3columns, .dropdown_4columns, .dropdown_5columns
    • Set the left:0px; on all the hover rules (eg. #menu li:hover .dropdown_1column) that used to have the specific pixel values.

    This works because the position:absolute; on the dropdowns will now position to the menu’s position, not relative to the menu item as before.

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

Sidebar

Related Questions

I'm developing in asp.net mvc2. I am beginning to create a lot of views
I was looking at Kristina's book and at the very beginning of the intro
Since beginning to use VB.NET some years ago I have become slowly familiar with
I've been looking at Philip Bunge's post on how to create a Tango style
I'm beginning to learn Ruby on Rails, and looking at other peoples code. Is
I am looking to create a QTcpServer using PyQt that can simultaneously return data
So I'm a little confused about Qt's memory management. I was looking at the
I'm a Java/.NET developer but on my spare time I've started looking into WordPress
Is there a utility out there that will create VB.NET classes from a Dataset.xsd
I'm looking into learning C basics and syntax before beginning Systems Programming next month.

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.