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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:46:10+00:00 2026-05-23T04:46:10+00:00

I have to modify a HTML page because the menu doesn’t work with IE6/IE7/IE8.

  • 0

I have to modify a HTML page because the menu doesn’t work with IE6/IE7/IE8.

HTML code :

<div id="menu">
    <table>
    <tr>
        <td><a href="menu1.php">Menu 1</a></td>

        <td>Menu 2
                <ul>
                    <li><a href="submenu1-1.php">Sub-menu 1</a></li>
                    <li><a href="submenu1-2.php">Sub-menu 2</a></li>
                    <li><a href="submenu1-3.php">Sub-menu 3</a></li>
                </ul>
        </td>

        <td><a href="menu3.php">Menu 3</a></td>

        <td>Menu 4
            <ul>
                    <li><a href="submenu3-1.php">Sub-menu 1</a></li>
                    <li><a href="submenu3-2.php">Sub-menu 2</a></li>
                    <li><a href="submenu3-3.php">Sub-menu 3</a></li>
            </ul>
        </td>

        <td><a href="menu5.php">Menu 5</a></td>

        <td>Menu 6
                <ul>
                    <li><a href="submenu5-1.php">Sub-menu 1</a></li>
                    <li><a href="submenu5-2.php">Sub-menu 2</a></li>
                    <li><a href="submenu5-3.php">Sub-menu 3</a></li>
                </ul>
        </td>

        <td><a href="disconnect.php">Menu 7</a></td>

    </tr>
    </table>
</div>

CSS code :

#menu a, #menu li, #menu td{
    color: black;
    text-decoration: none;
}

#menu a:hover{
    color: black;
}

#menu ul {
    list-style-type: square; 
    text-align:left;
}

#menu table{
    width: 100%;
    height:40px;
}

#menu td{
    border-right: 2px solid black; 
    padding-right:5px;
}

#menu td ul{
    position:absolute;
    left: -999em;
    margin-top:0px;
    border: 2px outset black;
    background: white;
}

#menu td:hover ul{

    left: auto;
}

The syntax with the ‘td’ and ‘ul’ seems a bit strange to me. Is there any tips to bring back the compatibility with the old versions of Microsoft browsers ?

Thank you !

  • 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-23T04:46:10+00:00Added an answer on May 23, 2026 at 4:46 am

    #menu td:hover ul will work in IE7+ if your page is in Standards Mode.

    To make your page use Standards Mode, add a proper doctype as the very first line, such as:

    <!DOCTYPE html>
    

    Unfortunately, this won’t fix IE6 because that version only supports :hover on a elements.

    To fix IE6 (and the other versions of IE if you can’t add a doctype and your page must remain in Quirks Mode), you should use this JavaScript fix:

    http://peterned.home.xs4all.nl/csshover.html

    Most modern browsers support the
    :hover selector for any html element.
    This is cool, because it enables you
    to, for instance, apply a mouseover
    effect to table rows using only
    CSS. IE however, has an erratic
    support for :hover at best, depending
    on the particular version your visitor
    is using.

    Whatever:hover is a small script that
    automatically patches :hover, :active
    and :focus for IE6, IE7 and IE8
    quirks, letting you use them like you
    would in any other browser.

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

Sidebar

Related Questions

I have an HTML page like so: <html> <body> <div id='something'> ... <script> var
I have only: <div> <textarea id=names></textarea> </div> I can't modify html. I can use
I have a set of html files that I want to modify by replacing
I have to modify some code in a application I am working on that
I found this PHP code in an app I have to modify... $links =
I have a JSP page that renders a block of HTML. In normal usage,
I have a div on a page whose contents is replaced by an AJAX
Strange behavior I noticed. I have a hidden (display:'none') HTML on a page. Then
Is there any way I could, using only Javascript and HTML, have a page
If I have a HTML page that links to two stylesheets that are invoked

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.