Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Image Hover

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #33480
    goalieman34
    Member

    Hello,
    I am looking to add an image hover to my 4 images on my homepage. Just something simple so it can hopefully work in most browsers. Any help would be great. Thanks!
    http://petrowest.squarespace.com/

    #101046
    Senff
    Participant

    Hum, can you define “image hover”? What should happen if you hover over any of the 4 images exactly?

    #101047
    goalieman34
    Member

    Sorry about that. When a user hovers over a image I would like for a fade,shadow,transparency or something along those lines to happen so the user can see the picture contains a link to another page.

    #101052
    dfogge
    Participant

    try this:

    img a:hover{
    opacity: 0.8;
    }

    or this:

    img a:hover{
    box-shadow: 0 1px 8px black;
    }
    #101056
    Billy
    Participant

    Or if the images are not links:

    img:hover {
    opacity: 0.8; /* 1 = 100%, 0 = 0% */
    /* or the drop-shadow effect */
    box-shadow: 0 1px 8px black; /* goes x-axis, y-axis, blur, (stretch factor on x-axis, not used here), colour */
    }
    #101081
    goalieman34
    Member

    thanks @dfogge and @cyneWATCH. Ill try those and see how they turn out!

    #101479
    goalieman34
    Member

    I was just wondering if anyone new of a technique to get a shadow to appear all the way around the outside an image when hovered.
    http://petrowest.squarespace.com/

    #101483
    cpyle0819
    Participant

    box-shadow: 0 0 10px #000;

    http://jsfiddle.net/BKFp5/

    Just combine that with the hover strategies above.

    You’re basically telling the shadow to not offset on either axis.

    Also: https://css-tricks.com/snippets/css/css-box-shadow/

    #102542
    luketheduke
    Participant

    What should I do to combat older IE browsers? The users of the particular site I am beginning to work on will more than likely have outdated browsers (and I’m on one here at work too! arg! dang IE8!!) Thx.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.