DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

How To Remove Blue Border From Hyperlink If It Contain Image Inside

12.15.2011
| 5089 views |
  • submit to reddit
        Remove any image that is contained within a link will be given large blue border
<style type="text/css">
a img
      {
        border: none;
      }
</style>

this will automatically remove borders from every hyperlink from entire page, if it contains image inside.

<a href="http://www.java-forums.org/blogs/spring-framework/"><strong>Spring Framework</strong></a>