How to subtract background from an image?

HTML background image link question?

  • Help! I used this code to create to overlay an image with a link over a background image: <a href="link destination url"><img src="link image.jpg" width="100%" height="100%" border="0" style="background:URL(background image.jpg) no-repeat; background-size: 100%; /></a> it works great for what I'm going for except that for some reason it turns the entire page into a link, not just the image! Does anyone have an idea how to correct this so that just the image links to the defined url??

  • Answer:

    You can check your codes on dreamweaver. You can easily get error there and you can fix it there.

Andy at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

your image is sized at 100% x 100%. so even though you see the background the image is still the entire screen. you can use a image set in a layer and only set the img itself as a link. what ever you set the absolute posistion of the image or size or use percentages i cant tell from what youve stated to what you want to actualy do.

Mark O

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.