0

Hello!

I cant figure out, how can i accomplish the following: i need to show a close button over an image when mouse is hovering over it. Clicking this button will delete the image. The problem, ofcourse, is not the image deletion, but how to show a close button in the image corner on mouse hover?
The image is simple img tag.

Thanks!

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Troy III
0

-----DIV-----------------
[div] X
[ background image ]
--------------------------

...is one of the ways to go.
You can use the css to position & style the "x" letter with border box etc.
Now, what's eating me is: are you planning to show it anytime later after it is closed or not?!!

0

-----DIV-----------------
[div] X
[ background image ]
--------------------------

...is one of the ways to go.
You can use the css to position & style the "x" letter with border box etc.
Now, what's eating me is: are you planning to show it anytime later after it is closed or not?!!

Thanks for answering! The images are located in LI tags. After deletion, i remove the needed LI tag from the UL and i dont need to show the image after closing anymore. The user can add another images to the UL, but if he closes one, it's gone.

I understood your answer, but i want to try not to use the image as background, since those images are used as links.

0

There's no difference between using divs or images cause if you wrap div in link tag it will act same as wrapped link image.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.