Jump to content

How can I hover image on top of another


Lisa23

Recommended Posts

Hi I've been trying to hover an image on top of another but it doesnt work because the hover is background so it seems like it display under the images is there a way to make show on the top of the images i want to show a small play button in the middle of the image any idea how i can do it

 

this is my list of images

<ul id="list_profile">
    <li class="">
        <a href="#/"><img width="440" height="450" alt="img4" src="/uploads/img4.jpg"></a>
    </li>
    
    <li class="">
        <a href="#/"><img width="440" height="450" alt="img3" src="/uploads/img3.jpg"></a>
    </li>
</ul>

The css

#list_profile li img { width:212px; height:222px; margin-bottom:10px; z-index:-1;}

#list_profile li img:hover {
    background: url("/images/galleryhover.png") no-repeat scroll left top transparent ;
    height: 222px;
    width: 212px;
	z-index:999;
}
Edited by Lisa23
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.