mrdantownsend
11-05-2006, 12:39 AM
Hello, I have been having a problem with floating boxes in CSS and firefox
you see, I put a CSS tooltip feature that uses a floating block to show the data I want displayed, and it works very well in IE and Firefox on text, but I tried to use it on an image and this weird hing happened
when I set how far I want it from the top, in IE, it sets the distance from the top of the pic, but in FF< it sets the distance from the bottom of the pic
examples:
Firefox: http://img526.imageshack.us/img526/2926/ffrr7.jpg
IE: http://img526.imageshack.us/img526/7609/ienk4.jpg
live example here: http://www.freewebs.com/mrdantownsend/photos.html
here's the CSS code I used for this:
/* pic Hover Box Starts Here */
a.pic {position:relative;
z-index:24;
color:#669eff;
text-decoration:none;
}
a.pic:hover {z-index:25;
color:#ffffff;
cursor:help;
}
a.pic span.pic {display: none;
}
a.pic:hover span.pic {display:block;
position:absolute;
top:25px;
left:10px;
width:200px;
background-color:#29568f;
color:#ffffff;
text-align:center;
}
thanks for any and all help
you see, I put a CSS tooltip feature that uses a floating block to show the data I want displayed, and it works very well in IE and Firefox on text, but I tried to use it on an image and this weird hing happened
when I set how far I want it from the top, in IE, it sets the distance from the top of the pic, but in FF< it sets the distance from the bottom of the pic
examples:
Firefox: http://img526.imageshack.us/img526/2926/ffrr7.jpg
IE: http://img526.imageshack.us/img526/7609/ienk4.jpg
live example here: http://www.freewebs.com/mrdantownsend/photos.html
here's the CSS code I used for this:
/* pic Hover Box Starts Here */
a.pic {position:relative;
z-index:24;
color:#669eff;
text-decoration:none;
}
a.pic:hover {z-index:25;
color:#ffffff;
cursor:help;
}
a.pic span.pic {display: none;
}
a.pic:hover span.pic {display:block;
position:absolute;
top:25px;
left:10px;
width:200px;
background-color:#29568f;
color:#ffffff;
text-align:center;
}
thanks for any and all help