x

How to add CSS / hover effect to images?

I've seen that that I can add CSS to an image, but not sure how to do that. Do I need an embed code? Where does the embed code element go on the page, and how do I figure out which picture is what?

My main goal is to have a photo that, when you hover over it, the photo fades out a bit and the caption appears as an overlay, similar to a gallery. It needs to be a single column of photos, though, so a gallery wouldn't work.

914 Views
Message 1 of 3
Report
2 REPLIES 2
Square

Hi there. There's a few third party sites that will provide the code you are looking for. I can't remember them off the top of my head but will try to find out for you. Smiley Happy

@bobafett I lost the link you posted to that really cool site you shared with me. Can you please post it here when you get a chance? Thanks!

901 Views
Message 4 of 3
Report

But where do I put the code once I have it; how do I put code on an image? I know enough CSS to know that if I could label those photos with a certain class (let's say .qwerty, for example), I could then write:

.qwerty {
    do the things with the code I need;
}

But, how do I set the images I want to have the .qwerty class?

885 Views
Message 4 of 3
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.