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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:12:31+00:00 2026-05-19T03:12:31+00:00

I have a drop down menu that is coded in HTML, CSS, and jQuery

  • 0

I have a drop down menu that is coded in HTML, CSS, and jQuery and it works fine in Firefox and IE but not in Safari, and also not in Firefox on Mac.

The drop down displays inline as opposed to list-item for the drop down in Safari.

Any ideas why?

<html>

<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

<script type="text/javascript" >

$(document).ready(function(){
        $('#menu li').hover(
            function() {
                //$('ul', this).css('display', 'block');
                $('ul', this).fadeIn(200); 
                var src = $('img.item', this).attr('src').match(/[^\.]+/) + '_over.png';
                $('img.item', this).attr('src', src);
            },
            function() { 
                //$('ul', this).css('display', 'none'); 
                $('ul', this).fadeOut(350);
                var src = $('img.item', this).attr('src').replace('_over', '');
                $('img.item', this).attr('src', src);
            });
});

</script>
<style type="text/css">
    /* General */
    body { arial, sans-serif;  background-color: white; }
    * { padding: 0; margin: 0; }



    #menu{
     white-space:nowrap;
     list-style:none;
     margin-left: 1px;
    }
    #menu ul { 
     list-style: none;
     position:absolute; 
     left:0; 
     display:none; 
     margin:0 -3px 0 -1px; 
     padding:0; 
     background: #000000;
     z-index: 500;
     margin-top: -4px;
    }

    #menu li{
     display:inline; 
     float: left;   
      /* Added */
     position:relative;
    }

    #menu li a { 
     display: block; 
    }

    #menu ul li {
     width:116px; 
     float:left; 
     border-top:1px dotted #666666;
     display: block;
    }

    #menu li ul { 
     display: none; 
     border-top: 1px black solid;
     text-align: left; 
    }

    #menu ul a:hover {
     text-decoration:none;  
     background: #efda83;
     color: #000000;
    } 

    #menu ul a {
     text-decoration:none;  
     display:block;  
     height:15px;
     padding: 8px 5px; 
     color:#efda83;
     font-size: 12px;
    }




    img{
     border: 0 none;
    }

    .clear{
     clear: both;
    }


</style> 



</head>


<body>

    <div>
            <ul id="menu">
            <li ><a href="index.php"><img src="images/ssr_nav_home.png" class="item" alt="Home" /></a>  </li>

            <li ><a href="about.php"><img src="images/ssr_nav_about.png" class="item" alt="About" /></a>
                <ul>
                    <li><a href="about_contributors.php">Contributors</a></li>
                    <li><a href="about_behind.php">Behind the Exhibit</a></li>
                    <li><a href="about_sponsors.php">Sponsors</a></li>
                </ul>
                <div class="clear"></div>

            </li>

            <li ><a href="exhibit_intro.php"><img class="item"  src="images/ssr_nav_exhibit.png" alt="Exhibit" /></a>
                <ul>
                    <li><a href="exhibit_intro.php">Intro</a></li>
                    <li><a href="exhibit_silkroad.php">Silk Road</a></li>
                    <li><a href="exhibit_western_regions.php">Western Regions</a></li>
                    <li><a href="exhibit_daily_life.php">Daily Life</a></li>
                    <li><a href="exhibit_burial_practices.php">Burial Practices</a></li>
                    <li><a href="exhibit_relevance.php">Relevance</a></li>
                </ul>
                <div class="clear"></div>
            </li>

            <li ><a href="visit.php"><img class="item" src="images/ssr_nav_visit.png" alt="Visit" /></a>
                <ul>
                    <li><a href="visit_tickets.php">Tickets</a></li>
                    <li><a href="visit_specials.php">Special Offers</a></li>
                    <li><a href="visit_tours.php">Tours</a></li>
                    <li><a href="visit_groups.php">Groups</a></li>
                </ul>
                <div class="clear"></div>
            </li>

            <li ><a href="events.php"><img class="item" src="images/ssr_nav_events.png" alt="Events" /></a>
                <ul>
                    <li><a href="events_lectures.php">Lecture Series</a></li>
                    <li><a href="events_symposium.php">Symposium</a></li>
                    <li><a href="kids_and_family.php">Kids &amp; Family</a></li>
                    <li><a href="events_calendar.php">Event Calendar</a></li>
                </ul>
                <div class="clear"></div>
            </li>

            <li ><a href="gallery.php"><img class="item" src="images/ssr_nav_images.png" alt="Gallery" /></a></li>

            <li ><a href="resources.php"><img class="item" src="images/ssr_nav_resources.png" alt="Resources" /></a>
                <ul>
                    <li><a href="resources_teachers.php">For Teachers</a></li>
                    <li><a href="kids_and_family.php">Kids &amp; Family</a></li>
                    <li><a href="http://www.penn.museum/podcasts-and-videos/819-secrets-of-the-silk-road.html" rel="external">Podcasts &amp; Videos</a></li>
                <!--    <li><a href="map.php">Silk Road Map</a></li> 
                    <li><a href="resources_timeline.php">Timeline</a></li> -->
                    <li><a href="resources_quiz.php">Quiz</a></li>
                    <li><a href="glossary.php">Glossary</a></li>
                    <li><a href="blogs.php">Blog</a></li>
                </ul>
                <div class="clear"></div>
            </li>

            <li ><a href="press.php"><img class="item" src="images/ssr_nav_press.png" alt="Press" /></a>
                <ul>
                    <li><a href="press_release.php">Press Release</a></li>
                    <li><a href="press_images.php">Press Images</a></li>
                    <li><a href="press_bloggers.php">Bloggers</a></li>
                </ul>
                <div class="clear"></div>
            </li>

        </ul>

        </div>

</body>



</html>
  • 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-19T03:12:32+00:00Added an answer on May 19, 2026 at 3:12 am

    I think your selector is messed up on the hover event. I debugged here: http://jsfiddle.net/brianflanagan/Spc2M/

    Basically I changed
    $('ul', this).fadeIn(200); to $(this).find('ul');

    Hope this helps.

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

Sidebar

Related Questions

I have a drop down menu and it works perfectly on everything except IE6
This would be my issue I have a drop down that's not displaying fully.
I have a (visibility:hidden) div with a Drop Down menu and a jQuery datepicker
My problem is: I have a drop down menu and i want that when
I've run on a little problem today: I have a JS drop down menu
We have a series of drop down controls that determine the sort order of
I have a navigation that uses jQuery and CSS to control image mouseover positioning
I have a drop down navigation menu in which some of the title should
I have implemented my own drop down menu and wanted to clarify the accessibility
I have a drop down like this on my page: <p> <%= f.label :episode_id

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.