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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:34:29+00:00 2026-06-11T06:34:29+00:00

I have a large menu built from lists. It is displaying correctly in all

  • 0

I have a large menu built from lists.

It is displaying correctly in all the modern browsers I have tried and IE8, however in IE7 the list items appear to be given large amounts of margin of varying size depending on the size of the list item (see image comparison below):

Comparison between a good browser and IE7

Unfortunately the debugging tools in IE7 are less than optimal and I am having a real hard time working out where the issue is coming from. The source code is a bit lengthy to post here so I have made a JSfiddle for your viewing pleasure.

View source code and working demo

Can anyone see where this mystery spacing is coming from, and how can I put it straight?

  • 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-11T06:34:30+00:00Added an answer on June 11, 2026 at 6:34 am

    In IE7 the <ul> tags are inheriting a line-height : 1.5em, disabling it in ie7 removes the annoying spacing. Updated fiddle

    This condition is the culprit

    ul {
        /* line-height: 1.5em; */
        list-style-position: outside;
    }
    

    Additional

    Ok I see what you mean about the white gap. This looks like its (surprise surprise) one of those annoying ie7 ‘features’. I just got round it by using a hack

    ul li, ul li a {
        /* Needed in ie7 to stop list items expanding vertically
        *line-height:1.2em;
    }
    

    with

    * html ul li a {
        height:15px;
    }
    

    or

    ul#map > li > a.map-item {
        height:auto;
        *height:15px;
    }
    

    Fiddle with no spacing in IE7

    A better way would be to create an IE7 only stylesheet and declare this as standard rather than relying on a hack.

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

Sidebar

Related Questions

I have a fairly large, three level deep, menu consisting of nested lists like
I have large list of the drop-down menu. Some of the option have very
I'm using jQuery to create a simple, but large dropdown menu. I have some
I have the following layout: https://dustinhendricks.com/breastfest/index.html In ie7 ( or ie8 in Compatibility View
I have a dropdown menu as follows <option value=Small>small</option> <option value=Medium>medium</option> <option value=Large>large</option> When
I have a site that has a large menu and each item on the
I have a (derived) Menu control, that displays a rather large list of items
I have multiple activities which all have a ListView powered menu that appears on
I have an ASP.NET web forms site with a rather large menu. The HTML
I have a menu that works on large screens but when the browser size

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.