Glacophane
08-06-2006, 02:08 PM
Ive seen topics posted on hover so far but none have answered my questions. I used the code for CSS popup image viewer on my myspace page. I finally got the code to work somewhat. However when I move the mouse over the picture, it will show up, but if a small picture is next to it, that pic will show up through the larger one. Im not too famaliar with CSS yet to figure out how to fix it. Any help would be greatly appreciated.
This is the code I got from the DF page:
.thumbnail{
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
..;
}
.thumbnail span{
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{
visibility: visible;
top: 0;
left: 60px;
}
And this is the code with my picture links:
<a class="thumbnail" href="#thumb"><img src="http://i79.photobucket.com/albums/j124/glacophane/car2.jpg" width="100px" height="66px" border="0" /><span><img src="http://i79.photobucket.com/albums/j124/glacophane/car2.jpg" /><br />Jealous?</span></a>
<a class="thumbnail" href="#thumb"><img src="http://i79.photobucket.com/albums/j124/glacophane/car3.jpg" width="100px" height="66px" border="0" /><span><img src="http://i79.photobucket.com/albums/j124/glacophane/car3.jpg" /><br />Want a ride?</span></a>
Im not sure if you need more code than that to look at, but here is my page as well so you can get an idea of what I mean.
http://www.myspace.com/moilsrustyblade
This is the code I got from the DF page:
.thumbnail{
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
..;
}
.thumbnail span{
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{
visibility: visible;
top: 0;
left: 60px;
}
And this is the code with my picture links:
<a class="thumbnail" href="#thumb"><img src="http://i79.photobucket.com/albums/j124/glacophane/car2.jpg" width="100px" height="66px" border="0" /><span><img src="http://i79.photobucket.com/albums/j124/glacophane/car2.jpg" /><br />Jealous?</span></a>
<a class="thumbnail" href="#thumb"><img src="http://i79.photobucket.com/albums/j124/glacophane/car3.jpg" width="100px" height="66px" border="0" /><span><img src="http://i79.photobucket.com/albums/j124/glacophane/car3.jpg" /><br />Want a ride?</span></a>
Im not sure if you need more code than that to look at, but here is my page as well so you can get an idea of what I mean.
http://www.myspace.com/moilsrustyblade