Jump to content

Recommended Posts

hey guys im trying to impliment a overlay to images uploaded by the user to allow to delete and crop...now im not sure if im going aroung this the right way (but it works sort of)...the problem im having is that the overlay.gif which is a transparent image which has 2 small images at the top of each corner...but when the original image is hovered over the overlay is out of position showing the 2 small images at the bottom of the div and not at the top where it should be.

 

im guessing it is a css issue...any advise would be greatly appreciated...thank you

#overlay
{
	width: 110px;
	height: 110px;	
}
.selected-image{
	width: 110px;
	height: 110px;
}
#overlay:hover  .selected-image  
{ 
opacity: 0.4;
    filter: alpha(opacity=40);	
}

#overlay:hover
{

	background-image: url('overlay.gif');
	width: 110px;
	height: 110px;
	
}
<div id="overlay"><img class="selected-image" src="logo.png" /></div>
Link to comment
https://forums.phpfreaks.com/topic/292247-simple-image-overlay/
Share on other sites

i managed to get the positoning right although im still having a few css issues if someone could please help

 

if you view here http://139546017.reseller20.grserver.gr/test.html

 

1. basically when the image is hovered over it goes transparent then the overlay goes over the top of that....but for some reason the overlay is also transparent which i dont want.

2. also i put two divs inside the overlay div called left and right...what im trying to do is make the cropped image icon and the delete icon on the overlay as a active link

 

advise or any help would be great thank you

  • 2 weeks later...
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.