|
Crimson Rider -> RE: pop up image on mouseover using css (11/18/2004 5:58:45)
|
Well, I've been trying around with this. And it works. I get excactly the effect I want. But, and it's a nasty but for me, it only works correctly in Firefox, not in IE. While on Eric Meyer's example it works flawlessly in both. I can't seem to spot my error. Can anyone help me spot it? The code I use is the following : stylesheet div#character
{
position : relative;
left : 10%;
width : 80%;
height : 700px;
z-index : 100;
font : 16px Verdana;
}
div#character a
{
display : block;
color : black;
margin : 0 0 1px;
text-decoration : none;
}
div#character a:hover
{
color : #1010FF;
}
div#character a span
{
display : none;
}
div#character a:hover span
{
font-family : Papyrus, MS Sans Serif, Sans Serif;
display : block;
position : absolute;
top : 40px;
left : 400px;
z-index : 100;
text-align : center;
border : 2px solid black;
} And the HTML is <html>
<head>
<title>Testing</title>
<link href="basic.css" type=text/css rel=StyleSheet>
</head>
<body>
<div id='character'>
<a href=''>Carly Johnson, Black Fury Cliath Ragabash<span>This garou is a hero</span></a>
<a href=''>Melissa Manhunter, Black Fury Cub Ahroun<span>This garou is a hero</span></a>
<a href=''>Reaver, Black Fury Fostern Ahroun<span>This garou is a hero</span></a>
<a href=''>Tal Leagallen, Black Fury Cub Theurge<span>This garou is a hero</span></a>
<a href=''>The Body, Black Fury Cliath Ahroun<span>This garou is a hero</span></a>
<a href=''>Coryus Flameliuqide, Bone Gnawer Cub Ragabash<span>This garou is a hero</span></a>
<a href=''>Desiré, Bone Gnawer Cliath Philodox<span>This garou is a hero</span></a>
<a href=''>Jillly Sees Things Gillian McGregor, Bone Gnawer Fostern Galliard<span>This garou is a hero</span></a>
<a href=''>Napoleon, Bone Gnawer Cliath Theurge<span>This garou is a hero</span></a>
<a href=''>Rob Rouge, Bone Gnawer Cliath Theurge<span>This garou is a hero</span></a>
</div>
</body>
</html> Alternativly, it can be seen in action at www.bluepelt.net/test.htm Thanx in advance for any assistance.
|
|
|
|