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 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 a navigation menu which looks like this: I have to split it
hey there, I have a Navigation Menu and my code looks like this.. <ul
I'm trying to generate environment-independent links in a navigation menu with Symfony routing system.
I want to return the page id from a URL string. For example If
I have developed a jQuery API browser from the raw XML available from http://api.jquery.com/api/
I have my Zend_Navigation loaded from a PHP array (but that's irrelevant...) and I'm
I am using PyroCMS Version 1.1.0 . It has the navigation module that is
I have read the docs over and over trying to wrap my head around
I've been struggling a while in order to get my primary links to display
WP version: 3.1.1 Theme: Twenty Ten I am new to WP. I am not

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.