Results 1 to 2 of 2

Thread: CSS3 Hover Image Gallery

  1. #1
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS3 Hover Image Gallery

    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/cs...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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,076
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    #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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •