Jump to content
Donny Bahama

What's wrong with my nav menu?

Recommended Posts

If you click on the "Services" item in my navigation menu, the nav bar gets really tall (instead of just a portion of it dropping down) and all the items in the nav menu get aligned to the bottom. It looks pretty crappy. Can anyone suggest the best/right way to correct it? Thanks for your time and consideration!

 

Share this post


Link to post
Share on other sites

The sub menu is supposed to be taken out flow from other elements by using position: absolute;

.main-menu-list {
    position: absolute;
}

You will also find z-index won't take effect unless position: absolute, relative or fixed are used.

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×