Hello, This is the code of a picture on my all html pages which is placed on my style css: #headermiddleredPan{width:154px; height:154px; background:url(images/xyz.jpg) 0 0 no-repeat; position:absolute; top:14px; left:492px;} I want to add a link to this image so that users can click the image and go to the website of that link url. How can I do that with the style css sheet? What code should I add to the above code? I also want the link as "blank", I mean the link should open in a new window. Thanks.
in html <a href="http://forums.digitalpoint.com"><img src="img.jpg" alt="img"/></a> and i reccomend in css for the image add border:0
<a href="http://www.THEWEBSITE.com" target="_blank"><img src="images/THEIMAGE.jpg" alt="Truck" /></a> put that in your html if you want no border on the image add border="0" inside the image tag or if you want to put it in css you can create a new class like .noborder{ border:0px; } then add the class="noborder" inside the image tag.
there is no way to di it with css you need to do it in html like belkornic explaned and make sure you use the image and not a div tag bc thats not valid