Web Browser Rendering Behavior: img Inside Anchor Link No Longer Has Border by Default

By Xah Lee. Date: . Last updated: .

As of 2012-01-25, images inside link are not rendered with border now. So, you don't have to add CSS such as a.img {border:none}.

This is true for {Google Chrome, Firefox, Opera, Safari}, except Internet Explorer 9.

Test your browser.

Here is the code:

<a href="index.html"><img src="i/lilies-s.png" alt="lilies"></a>

Here is how it's rendered:

tile B
BUY ΣJS JavaScript in Depth