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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:57:02+00:00 2026-05-27T18:57:02+00:00

In Internet Explorer (I’ve tested in all v6 – v9) the border on the

  • 0

In Internet Explorer (I’ve tested in all v6 – v9) the border on the sub-menu does not at first appear when you hover over the text. The second time you hover it will display. It works fine in Firefox and Chrome – i.e. it always displays the border. I’ve put an example page up on my site.

IE (on hover):

IE

FF/Chrome (on hover):

FF

There’s nothing fancy here, some css, onmouseover/onmouseout Javascript to set style.display = block/none. I’ve followed some of the ideas in this answer to a similar question.

I’ve stripped it down to the minimum to try and find the problem, but still no luck.

The sub-menu ul element has display:none set on it. It seems that IE doesn’t bother drawing the border until it has display:block set, and doesn’t draw it initially when Javascript is used to display the element.

<html>
<head>

    <title></title>
    <style type="text/css">
    ul, li                      {padding:0; margin:0; border:0;}
    ul#hover_menu_list, 
    ul#hover_menu_list ul       {list-style-type:none;}
    ul#hover_menu_list li       {float:left;position:relative;display:inline;}
    ul#hover_menu_list li ul    {border:1px solid #000;display:none;position:absolute;left:0px;top:20px;width:170px;}
    ul#hover_menu_list li ul li {display:block; clear:left; float:left;width:140px;}
    </style>
</head>
<body>
    <ul id="hover_menu_list" onmouseout="document.getElementById('menu1').style.display='none';" onmouseover="document.getElementById('menu1').style.display='block';">
        <li>
            Menu
            <ul id="menu1">
                <li>Submenu1</li>
                <li>Submenu2</li>
            </ul>
        </li>
    </ul>   
</body>
</html> 

UPDATE: The problem was indeed a doctype issue. Adding in either a transitional or strict doctype fixes the problem. The linked page has been updated with the fix.

  • 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-27T18:57:03+00:00Added an answer on May 27, 2026 at 6:57 pm

    As mentioned in the comment, it looks like you are missing a doctype.

    Oldie but goodie:

    http://www.alistapart.com/articles/doctype/

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

Sidebar

Related Questions

Internet Explorer does not like my Jquery selector. Not sure if it's my weak
Internet Explorer 7 only; FireFox, IE 8, Chrome works fine. My left menu http://box1.thegiant.ca/~cuisirama/index.php
Only Internet Explorer is not working (I happen to be using version 8, but
In Internet Explorer 7, when I click on the menu in 'Categories' block, my
How to create an Internet Explorer addon with .net. All I need is a
Internet Explorer 7 seems to ignore the :not-selector in the second line in following
When debugging in Internet Explorer, I first get an alert box with extremely limited
Internet Explorer 7 and below is not displaying my Borders and if so, it
Internet explorer 6 VS1 doesn't support gzip compression correctly. It does however understand deflate.
Internet explorer has a menu option which can be used to send a page

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.