Jump to content

Linked images in floating div don't line up with link area


sfraise

Recommended Posts

I have 4 images that all link to another page in a floating div on the front page of www.erecoverydev.com.

For some reason when I float the div the linkable area on the image doesn't line up with the image like the link isn't floating with the image.

 

Here is the css I'm using to float it:

.nametags {

position:relative;

float:right;

margin-right:75px;

margin-top:-175px;

}

 

And here is how the html looks:

<a title="Myself" href="/index.php?option=com_content&view=article&id=48:myself&catid=14&Itemid=148"><img alt="Get help for myself" src="/images/Myself.png" /></a>

It doesn't make sense to me why an image wrapped in an a tag wouldn't have the linkable area line up with the actual image, I mean the image is WRAPPED in the link so I don't understand it at all.

 

Looking at the page source it looks normal as well so I'm totally at a loss here.

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.