TechQA.

        Firefox 3 with image links and roll over

        146 views Asked by vincentieo At 2012-05-02T16:46:33+00:00 02 May 2012 at 16:46 2025-12-23T08:05:43+00:00

        I have a menu that isnt behaving for firefox 3 (and possible other versions)

           <div id="menu">
        <p style="margin-right: 10px;">
        <ul id="image-menu">
            <a href="/#middle"><li class="home_menu"></li></a> |
            <a href="/#top"><li class="about"></li></a> | 
            <a href="/#right"><li class="stories"></li></a> | 
            <a href="/#bottom"><li class="whats_on"></li></a> | 
            <a href="/#left"><li class="get_involved"></li></a> | 
            <a href="http://secure.theatreroyal.com/tickets/production.aspx?PID=308539"><li class="tickets"></li></a> | 
            <a href="/index.php/twayf/contact"><li class="contact"></li></a>
        </ul>
        </p>
        
        </div>
        

        CSS

            <style type="text/css">
        
        #image-menu ul {line-height: 20px;}
        
        #image-menu li {list-style: none; height: 22px; display: inline-block;}
        
        #image-menu a {display:inline-block;}
        
        .home_menu {background-image: url(/images/menu/home1.png); background-repeat: no-repeat; width: 50px; }
        .home_menu:hover {background-image: url(/images/menu/home2.png);}
        
        .about {background-image: url(/images/menu/about1.png); background-repeat: no-repeat; width:64px; }
        .about:hover {background-image: url(/images/menu/about2.png);}
        
        .stories {background-image: url(/images/menu/stories1.png); background-repeat: no-repeat; width:88px; }
        .stories:hover {background-image: url(/images/menu/stories2.png);}
        
        .whats_on {background-image: url(/images/menu/whats_on1.png); background-repeat: no-repeat; width:96px; }
        .whats_on:hover {background-image: url(/images/menu/whats_on2.png);}
        
        .get_involved {background-image: url(/images/menu//behind_the_scenes1.png); background-repeat: no-repeat; width:192px; }
        .get_involved:hover {background-image: url(/images/menu/behind_the_scenes2.png);}
        
        .tickets {background-image: url(/images/menu/tickets1.png); background-repeat: no-repeat; width:83px; }
        .tickets:hover {background-image: url(/images/menu/tickets2.png);}
        
        .contact {background-image: url(/images/menu/contact1.png); background-repeat: no-repeat; width:83px; }
        .contact:hover {background-image: url(/images/menu/contact2.png);}
        
        </style>
        

        What is my best solution....add a fire fox version conditional statement to ask people to upgrade (i know ff 11 works fine) or is there another more elegant solution?

        css rollover firefox-3
        Original Q&A
        1

        There are 1 answers

        2
        Stuart Burrows Stuart Burrows On 2012-05-02T16:58:07+00:00 02 May 2012 at 16:58

        I suspect the problem here is that this html isn't valid and so you need a decent parser to correct the issues.

        Can you not change the html to look like this:

        <div id="menu" style="margin-right: 10px;">
            <ul id="image-menu">
                <li class="home_menu"><a href="/#middle"></a></li> |
                <li class="about"><a href="/#top"></a></li> | 
                <li class="stories"><a href="/#right"></a></li> | 
                <li class="whats_on"><a href="/#bottom"></a></li> | 
                <li class="get_involved"><a href="/#left"></a></li> | 
                <li class="tickets"><a href="http://secure.theatreroyal.com/tickets/production.aspx?PID=308539"></a></li> | 
                <li class="contact"><a href="/index.php/twayf/contact"></a></li>
            </ul>
        </div>
        

        I suspect this is what FF11 is showing after parsing the html. You could verify this by using Firebug (or similar) to view the html

        Related Questions in CSS

        • How to use custom font during html to pdf conversion?
        • Storing the preferred font-size in localStorage
        • mp4 embedded videos within github pages website not loading
        • Is there any way to glow this bulb image like a real light bulb
        • What can I do to improve my coding on both html and css
        • Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
        • Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
        • How to increase quality of mathjax output?
        • Hover animation resetting( seemingly reverting back to original CSS and then again to hover)when moving mouse horizontaly accross a part of an element
        • Storing selected language in localStorage
        • How to clip grid cell and provide scroll as well?
        • KeyboardAvoidingView makes a messy the flexbox
        • Rotate an object around another object in javascript
        • Understanding Scroll Anchoring Behavoir
        • how to use only block layout in this css code?

        Related Questions in ROLLOVER

        • Trying to have a video switch (roll over) upon hovering over a button that links to a different page
        • Not performed correctly rollover for index.lifecycle.rollover_alias
        • Unable to name log file with custom timestamp format using TimedRotatingFileHandler
        • Rolling over image moves everything below it down
        • How to verify if a Data stream already exists and delete or replace it ,in elasticsearch using python code
        • In Stripe Subscription, how do i implement a rollover monthly usage that is not consumed to the next month?
        • How to configure Elasticsearch ILM rollover to create indexes tiwh date?
        • ILM Policy is rolling over later than configured
        • The rollover of a specific menu item is not showing the hidden sub menu
        • WordPress Block Theme Navigation remove submenu on hover
        • Change Colour Of Rollover Text On "Continue Shopping" WooCommerce Button
        • Log4j not rolling over with latest version log4j-2.17.2
        • elascticsearch roll over based on ilm policy with keeping application/consumer as-is
        • FuentD Rollover alias for AWS OpenSearch ILM
        • ELK logstash rollover index doesn't has rep shards

        Related Questions in FIREFOX-3

        • javascript- How to play an audio file 5 seconds after the loading of a webpage?
        • Reset-Button only if available
        • Raphael JS problems in Firefox 3.0.12
        • FF3.0.7 Text wrap
        • Selenium IDE 1.8.1 and Firefox 3
        • Firefox 3 with image links and roll over
        • CSS Sprites Not Rendering Correctly in Internet Explorer 6/7/8
        • Open a child window to work like alert box in Firefox
        • Detect Firefox < 3.6
        • JQuery and tablesorter on Firefox 3.5
        • Animation working very slow in my Firefox 3
        • Questions on backwards compatibility of Firefox Addons/Extensions
        • Very strange jQuery selector bug in Firefox 3.6.x
        • Firefox 3 and Safari doesn't load some parts of CSS
        • Why the ajax code works in IE, chrome, FireFox5.0 but not works in FireFox 3?

        Popular Questions

        • How do I undo the most recent local commits in Git?
        • How can I remove a specific item from an array in JavaScript?
        • How do I delete a Git branch locally and remotely?
        • Find all files containing a specific text (string) on Linux?
        • How do I revert a Git repository to a previous commit?
        • How do I create an HTML button that acts like a link?
        • How do I check out a remote Git branch?
        • How do I force "git pull" to overwrite local files?
        • How do I list all files of a directory?
        • How to check whether a string contains a substring in JavaScript?
        • How do I redirect to another webpage?
        • How can I iterate over rows in a Pandas DataFrame?
        • How do I convert a String to an int in Java?
        • Does Python have a string 'contains' substring method?
        • How do I check if a string contains a specific word?

        Popular Tags

        javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json

        Trending Questions

        • UIImageView Frame Doesn't Reflect Constraints
        • Is it possible to use adb commands to click on a view by finding its ID?
        • How to create a new web character symbol recognizable by html/javascript?
        • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
        • Heap Gives Page Fault
        • Connect ffmpeg to Visual Studio 2008
        • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
        • How to avoid default initialization of objects in std::vector?
        • second argument of the command line arguments in a format other than char** argv or char* argv[]
        • How to improve efficiency of algorithm which generates next lexicographic permutation?
        • Navigating to the another actvity app getting crash in android
        • How to read the particular message format in android and store in sqlite database?
        • Resetting inventory status after order is cancelled
        • Efficiently compute powers of X in SSE/AVX
        • Insert into an external database using ajax and php : POST 500 (Internal Server Error)
        • Privacy
        • Terms
        • Cookies
        • Homegardensmart
        • Math
        • Aftereffectstemplates