Image Hover problem in firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andrewtayloruk
    New Member
    • Feb 2007
    • 12

    #1

    Image Hover problem in firefox

    Hi, i'm pretty new to CSS and html so please go easy on me.

    I'm trying to make a menu, the idea is that when you hover over the images in the menu they glow. To do this i have set up the following in css

    ***CSS Document***
    a.wallpaper_but ton {background:url (images/wallpaper_conta iner.gif);}
    a.wallpaper_but ton:hover {background:url (images/wallpaper_conta iner_on.gif);}

    a.screenshot_bu tton {background:url (images/screenshot_cont ainer.gif);}
    a.screenshot_bu tton:hover {background:url (images/screenshot_cont ainer_on.gif);}

    a.downloads_but ton {background:url (images/downloads_conta iner.gif);}
    a.downloads_but ton:hover {background:url (images/downloads_conta iner_on.gif);}

    div.menu_wallpa per {position:absol ute; left:17px; top:220px; height:50px; width:200px; background-color:transpare nt;}
    div.menu_screen shot {position:absol ute; left:17px; top:270px; height:50px; width:200px; background-color:transpare nt;}
    div.menu_downlo ads {position:absol ute; left:17px; top:320px; height:50px; width:200px; background-color:transpare nt;}

    I have then done the following in the html document
    <div class="menu_wal lpaper"><a class="wallpape r_button" href="wallpaper s.php" target="_blank" ><img src="images/overlay.gif"></img></a></div>
    <div class="menu_scr eenshot"><a class="screensh ot_button" href="screensho ts.php" target="_blank" ><img src="images/overlay.gif"></img></a></div>
    <div class="menu_dow nloads"><a class="download s_button" href="downloads .php" target="_blank" ><img src="images/overlay.gif"></img></a></div>

    The overlay image in that <a> element above is a transparent gif, now in ie it displays the menus correctly and works as i wanted but when i get to firefox it is only displaying half of the menu image.

    Any ideas, i'd like not to change around with the code too much because i don't want to confuse myself but please please help. I've got to get this working by the end of the week. :-(
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    Can you provide either the full code or a link so we can test in each browser.

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      Preferably a link because we won't have the images.

      I have a feeling we are going to find out the problem is in IE. Expanding boxes to contain the absolutely positioned elements. This is a bug in IE.

      Comment

      Working...