iNcR3d1bl3
01-24-2007, 06:01 PM
Hi, I'm building a CSS gallery for my friend for his company site, however, the gallery works fine in Firefox but in IE theres an issue where the image that appears on hover appears behind the other images instead of on top.
heres the link to the page
http://www.vdavince.com/pages/gallery.php
and here's the CSS code associated with the photo gallery
.photoGallery {
cursor: default;
list-style: none;
}
.photoGallery a {
cursor: default;
}
.photoGallery a .preview {
display: none;
}
.photoGallery a:hover .preview
{
display: block;
position: absolute;
top: -33px;
left: -45px;
z-index: 1;
}
.photoGallery img {
background: #fff;
border-color: #aaa #ccc #ddd #bbb;
border-style: solid;
border-width: 1px;
color: inherit;
padding: 2px;
vertical-align: top;
width: 125px;
height: 100px;
}
.photoGallery li {
background: #eee;
border-color: #ddd #bbb #aaa #ccc;
border-style: solid;
border-width: 1px;
color: inherit;
display: inline;
float: left;
margin: 3px;
padding: 5px;
position: relative;
}
.photoGallery .preview {
border-color: #000;
width: 300px;
height: 300px;
z-index: 100;
}
thanks in advance for any help
heres the link to the page
http://www.vdavince.com/pages/gallery.php
and here's the CSS code associated with the photo gallery
.photoGallery {
cursor: default;
list-style: none;
}
.photoGallery a {
cursor: default;
}
.photoGallery a .preview {
display: none;
}
.photoGallery a:hover .preview
{
display: block;
position: absolute;
top: -33px;
left: -45px;
z-index: 1;
}
.photoGallery img {
background: #fff;
border-color: #aaa #ccc #ddd #bbb;
border-style: solid;
border-width: 1px;
color: inherit;
padding: 2px;
vertical-align: top;
width: 125px;
height: 100px;
}
.photoGallery li {
background: #eee;
border-color: #ddd #bbb #aaa #ccc;
border-style: solid;
border-width: 1px;
color: inherit;
display: inline;
float: left;
margin: 3px;
padding: 5px;
position: relative;
}
.photoGallery .preview {
border-color: #000;
width: 300px;
height: 300px;
z-index: 100;
}
thanks in advance for any help