Check out this JS Fiddle demonstration.
Key Details:
- The div has a width of 500px
- The image inside is horizontally centered using CSS (margin: 0 auto)
- The image is wrapped in an anchor tag (with no additional CSS styling)
Issue:
Upon inspecting the anchor tag (using Firebug or another inspector), it displays the same dimensions as the image. However, the entire div is clickable.
Queries:
- Is Firebug incorrectly displaying the size of the anchor tag?
- Could this be a browser error? (I doubt it)
- What could possibly be causing this curious behavior?