set a background image to be clickable [duplicate]
Possible Duplicate:
How can I make a background clickable
I want to have a clickable background image. but I am not able to do that. the problem is when i use
<div id="wrapper" class="bigshadow" style="background-color: #fff url(/affiliate/uploads/images/image.gif) no-repeat right top"></div>
the image is not clickable. when i use
<a style=float:right href="google.com"><img src="/affiliate/uploads/images/image.gif" /></a>
the image does开发者_如何学编程n't set as a back ground. much appreciate for any help
Set your a
to display: block
, height, width and background image.
精彩评论