Margins and padding around image links are clickable. How can I configure only the image as the link?

I can't not formatting of the links I added to my images. I used css rules to define the layout of my page, the margin using the css rules to dictate most of the layout. I had everything where it needs to be visually, however I have a problem after adding links. Whenever I put an image as a link, the white space around the image that is associated with the margin is also a clickable part of the link. I tried to use padding instead of margin for the page layout, but that was of no help. I want only the image itself to be the link so that the margins between photos in a gallery are not clickable links. How can I do this while maintaining the layout of the page?

I think that the best way to solve this problem would be to hold each image in a div that is sized appropriately.  Put the margins and padding on the div.  Put the links on images.  The divs must be launched to get them on the same horizontal line.

Make sense?

Tags: Dreamweaver

Similar Questions

Maybe you are looking for