/ Published in: CSS
- Put image in 'span' otherwise the whole surrounding box becomes a link.
- Is there a better way to make images a link if you don't want a server roundtrip by?
Expand |
Embed | Plain Text
#container{ float: right; padding-right: 50px; width: 25px; } #image{ cursor: pointer; } Usage: <div> <span id="container"> <img id="image" onclick="doit()" src="some.gif"> </span> </div>
You need to login to post a comment.
