RE: objects as links


> If #topbanner bad is wider than the image, a usability bug is introduced.
> Because the image is a child of the anchor, the anchor is not limited to physical
> screen space of the image and (at least in some
> browsers) empty white space to the right and left of the image will trigger the
> anchor.

Have you styled the <a href> element as a CSS block level element? This would cause it to include white space around the image, but inside the <a> element, as clickable and part of the link. To resolve, just make sure <a href> is styled as CSS display: inline. 

Otherwise, as per Chaals' reply, this sounds like a browser bug issue. What does the browser inspector say about the whitespace around the element; is it selectable as part of the <a href> element when using the inspector object selector? 

Joe

Received on Tuesday, 29 November 2016 11:41:46 UTC