Jump to content

Image over another image - not working


sleepyw
Go to solution Solved by sleepyw,

Recommended Posts

This is driving me nuts. I've stripped the code down to the most basic elements. I've looked online at other examples. But I cannot get this to work.

 

I basically have a big image gallery, and in the bottom-right corner of each thumbnail, I want to overlay a small clickable icon.

 

However, the last image of a row (for example, if I have 3 rows of images, the last one on the right of each column) will not show the icon. If I try it with just one image, nothing shows up at all for an overlay.

 

Here's the code:

<div style='text-align: center; padding: 5px; margin: 0px; margin-right: 0px; float: left; width: 120px; position: relative;'>
<img src='images/hires.png' style='position: absolute; top: 40px; left: -60px;'>
<img src='images/folder_orange.png'>
</div>

<div style='text-align: center; padding: 5px; margin: 0px; margin-right: 0px; float: left; width: 120px; position: relative;'>
<img src='images/hires.png' style='position: absolute; top: 40px; left: -60px;'>
<img src='images/folder_orange.png'>
</div>
 

The resulting page looks like this:

vkM0hIM.jpg

I've played with the code so many ways, but can't figure this out. Anyone?

Edited by sleepyw
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.