Jump to content

Image on top of an Image


NevadaSam

Recommended Posts

 

I am looking for a simple way to put an image on top of an image. I know how to use "z-index", but I want to do this without using additional img tags. My images(thumbnails) vary in height and width. The image I want to float on top at the bottom right of the thumbnails is a 12x12 magnifying glass image to indicate the image can be enlarged by clicking the thumbnail. Here is what I have so far.

 

 

.tn {
border: double;
float: left;
border-color:#0000FF;
padding: 3px;
margin-top: 0px;
margin-right: 10px;
margin-bottom: 5px;
margin-left: 0px;
/*     background-image:url(images/magnify.gif) no-repeat right bottom;  */
}


<img class="tn" src="image.jpg" alt="click to enlarge" />

 

Sam

;

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.