Log in

View Full Version : CSS3 Hover Image Gallery



Kellyx
01-03-2012, 05:46 PM
I want to use the 'CSS3 Hover Image Gallery' tutorial to create social media icons with a nice hover effect.
I have followed the tutorial (This one; http://www.dynamicdrive.com/style/csslibrary/item/css3_hover_image_gallery/) and used it on this page; http://lucsenden.nl/index.html

But it isn't showing any hover effects.
What am I doing wrong?

jscheuer1
01-04-2012, 04:08 AM
Because the header div's position is relative and it comes after the 'gallery' in the markup, in some browsers it's underneath (obscured from being hovered by) the header.

For example, around line #102 in style.css:


#header {
height:110px;
position:relative
}

Get rid of that temporarily. The hover effect should then work.

For a more permanent solution, try putting the 'gallery' in the header div.