mike_kennedy
11-24-2005, 11:40 PM
Hi, I've been trying to have a table, with my details in, popup somewhere on the screen when I hover over an image.
Now I'm using this code for the image so that once you hover over it, it changes position {thus changing the picture } :
div.detail { position:absolute; left:50%; top:155px; left:420px; width:89px; height:20px; z-index:2; }
a.details, a:link.details { width:89px; height:20px; display:block;
background-image:url("URL of the image"); background-position:90px;}
a:hover.details {background-position:0px;}
Here's the code for the "popup" :
a:link,
a:visited,
a:active{color: 000000; font-family:arial, verdana, tahoma, sans-serif;font-size:10px;}
a span{display:none;}
a:hover span {display: block;
position: absolute; top: 250px; left: 400px; width:200px;
padding: 3px; margin: 5px; z-index: 5;
color: black; background: white; filter:none;
font-size: 10px;font-family: arial, verdana, tahoma, sans-serif;}
Now whenever I try to use <span>Details</span> it just doesn't seem to want to hide the details box when I'm not hovering the image.
Now I'm no master whizz at CSS, but it's got to be something with the original a.hover.details bit. The only problem is that I don't know of any other way to display 2 different pictures on a hover and also bring up a table.
Any help on this would be greatly appreciated as I'm rather stumped.
Now I'm using this code for the image so that once you hover over it, it changes position {thus changing the picture } :
div.detail { position:absolute; left:50%; top:155px; left:420px; width:89px; height:20px; z-index:2; }
a.details, a:link.details { width:89px; height:20px; display:block;
background-image:url("URL of the image"); background-position:90px;}
a:hover.details {background-position:0px;}
Here's the code for the "popup" :
a:link,
a:visited,
a:active{color: 000000; font-family:arial, verdana, tahoma, sans-serif;font-size:10px;}
a span{display:none;}
a:hover span {display: block;
position: absolute; top: 250px; left: 400px; width:200px;
padding: 3px; margin: 5px; z-index: 5;
color: black; background: white; filter:none;
font-size: 10px;font-family: arial, verdana, tahoma, sans-serif;}
Now whenever I try to use <span>Details</span> it just doesn't seem to want to hide the details box when I'm not hovering the image.
Now I'm no master whizz at CSS, but it's got to be something with the original a.hover.details bit. The only problem is that I don't know of any other way to display 2 different pictures on a hover and also bring up a table.
Any help on this would be greatly appreciated as I'm rather stumped.