clickable div with img in it?

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-03-19T18:55:37Z Indexed on 2010/03/19 19:01 UTC
Read the original article Hit count: 330

Filed under:
|

I have a div i would like to make clickable. I know i need to make the div (and?) the link have a fixed width and height + display: block. I have an imagine inside of the div. It seems like the 'clickable' div is actually a large transparent link and this click does not play well with images as it doesnt share space. I need to right click the image and hit save as.

So how do i make the div clickable. I tried setting the img width and height but it made the img stretch.

© Stack Overflow or respective owner

Related posts about html

Related posts about css