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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:42:06+00:00 2026-05-24T12:42:06+00:00

I have a navigation menu generated by WordPress, meaning I have pretty much no

  • 0

I have a navigation menu generated by WordPress, meaning I have pretty much no control on how it is output.

I have used css to style it the way I want with on-hover submenus, but it looks off in IE7. It does not have any problems in other browsers.

The main menu may seem off even in browsers that work because I am using @fontface on my website but did not include in the jsFiddle. The main problem is the gaps between the submenu items.

I have tried vertically aligning the submenu li and a, but it either made it worse or didn’t fix the problem.

I have replicated the problem here: [link removed]


If I add

#menu-header .sub-menu a { height: 100%; }

It fixes the vertical gap problem, but the items are no longer the same width.

  • 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-24T12:42:08+00:00Added an answer on May 24, 2026 at 12:42 pm

    You can try the following :

    #menu-header .sub-menu a { zoom: 1; }
    

    This will remove the gap, but items will be the same width as the inner content.

    I had the same problem some time ago. What I did was, create a container div inside the li. so that longer text can wrap, and set a static width. You can even use jQuery to adjust the widths of each dropdown dynamically, but that a whole different story.

    Few references :

    http://work.arounds.org/issue/20/removing-gaps-between-list-items-containing-anchor/

    http://www.456bereastreet.com/archive/200610/closing_the_gap_between_list_items_in_ie/

    http://www.belafontecode.com/3-ways-to-get-rid-of-spaces-in-list-item-navigation-in-ie6/

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

Sidebar

Related Questions

I have some static pages in a navigation menu. I want to add a
I have a navigation menu which contain sub menus. On hover I want the
I have a small tabbed navigation setup using CSS. When hovering over the tabs
I have created some rounded navigation tabs using CSS and am having trouble when
I have a YUI menu top bar navigation menu based from this example .
I have a navigation menu that has submenus slide down on hover. The menu
I have a navigation menu which I need to include on all my pages....through
i have a navigation menu and i am using the hover element to change
I am a rookie CSS user, i have the following nav menu code and
I have navigation menu. When clicked, only page content div should be updated from

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.