I created a primary div
to serve as a container with a width set to 90%. At the top of this div, I have a title (image) with styling attributes such as height: 5em
, display: block
, and margin: auto
.
In my HTML structure, it is organized like this:
<a href=""><img scr=""></a>
.
Interestingly, when clicking away to the left of the picture, the link remains clickable. This behavior has been observed in browsers such as Chrome, Safari, Firefox, IE, and Opera. The desired interaction was achieved only in IE and Opera where the link was activated only upon mouse directly over the image. Ideally, I would like this functionality to be consistent across all browsers. Thank you.
Edit: An example demonstrating the issue can be accessed at: http://jsfiddle.net/Bionicrm/dXaAF/.