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. :-(
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. :-(
Comment