Click here to Skip to main content
15,867,594 members
Articles / Web Development / CSS3
Tip/Trick

Remove blue border when image is inside the hyperlink

Rate me:
Please Sign up or sign in to vote.
4.97/5 (33 votes)
5 Oct 2010CPOL 110.2K   13   41
Remove any image that is contained within a link will be given large blue border
XML
<style type="text/css">
a img
      {
        border: none;
      }
</style>


Please provide "Vote" if this would be helpful.:rose:

Thanks,
Imdadhusen

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Infostretch Ahmedabad-Gujarat
India India
Aspiring for a challenging carrier wherein I can learn, grow, expand and share my existing knowledge in meaningful and coherent way.

sunaSaRa Imdadhusen


AWARDS:

  1. 2nd Best Mobile Article of January 2015
  2. 3rd Best Web Dev Article of May 2014
  3. 2nd Best Asp.Net article of MAY 2011
  4. 1st Best Asp.Net article of SEP 2010


Read More Articles...

Comments and Discussions

 
GeneralMy vote of 5 Pin
Member 1135907124-Jan-15 18:50
Member 1135907124-Jan-15 18:50 
GeneralGood example Pin
pardeept21-Jan-14 20:51
pardeept21-Jan-14 20:51 
GeneralRe: Good example Pin
Sunasara Imdadhusen22-Apr-14 3:03
professionalSunasara Imdadhusen22-Apr-14 3:03 
GeneralMy vote of 5 Pin
MikaHaki27-May-13 0:57
MikaHaki27-May-13 0:57 
GeneralRe: My vote of 5 Pin
Sunasara Imdadhusen27-May-13 1:00
professionalSunasara Imdadhusen27-May-13 1:00 
GeneralMy vote of 5 Pin
Savalia Manoj M7-Nov-12 1:09
Savalia Manoj M7-Nov-12 1:09 
GeneralRe: My vote of 5 Pin
Sunasara Imdadhusen22-Apr-14 3:03
professionalSunasara Imdadhusen22-Apr-14 3:03 
GeneralMy vote of 5 Pin
Savalia Manoj M18-Oct-12 18:39
Savalia Manoj M18-Oct-12 18:39 
GeneralRe: My vote of 5 Pin
Sunasara Imdadhusen18-Oct-12 18:42
professionalSunasara Imdadhusen18-Oct-12 18:42 
GeneralMy vote of 5 Pin
Savalia Manoj M18-Oct-12 18:37
Savalia Manoj M18-Oct-12 18:37 
GeneralRe: My vote of 5 Pin
Sunasara Imdadhusen18-Oct-12 18:44
professionalSunasara Imdadhusen18-Oct-12 18:44 
GeneralMy vote of 5 Pin
acasia23-Sep-12 3:10
acasia23-Sep-12 3:10 
GeneralRe: My vote of 5 Pin
Sunasara Imdadhusen22-Apr-14 3:09
professionalSunasara Imdadhusen22-Apr-14 3:09 
GeneralMy vote of 5 Pin
EdThomson29-Jun-12 10:43
EdThomson29-Jun-12 10:43 
GeneralRe: My vote of 5 Pin
Sunasara Imdadhusen22-Apr-14 3:09
professionalSunasara Imdadhusen22-Apr-14 3:09 
GeneralReason for my vote of 5 Thank you! Pin
Peter Afonin19-Nov-11 12:26
Peter Afonin19-Nov-11 12:26 
GeneralRe: Reason for my vote of 5Thank you! Pin
Sunasara Imdadhusen22-Apr-14 3:09
professionalSunasara Imdadhusen22-Apr-14 3:09 
GeneralThank you my brother!!! I will invite you a pizza!!! Greetin... Pin
caballoalado25-Apr-11 12:03
caballoalado25-Apr-11 12:03 
GeneralRe: thanks you very much Pin
Sunasara Imdadhusen19-Aug-11 18:28
professionalSunasara Imdadhusen19-Aug-11 18:28 
GeneralReason for my vote of 5 best answer of the lot Pin
jim lahey5-Apr-11 21:27
jim lahey5-Apr-11 21:27 
GeneralRe: thanks you very much Pin
Sunasara Imdadhusen19-Aug-11 18:27
professionalSunasara Imdadhusen19-Aug-11 18:27 
GeneralReason for my vote of 5 Good solution. Pin
Venkatesh Mookkan5-Apr-11 16:24
Venkatesh Mookkan5-Apr-11 16:24 
GeneralRe: thanks you very much Pin
Sunasara Imdadhusen19-Aug-11 18:27
professionalSunasara Imdadhusen19-Aug-11 18:27 
GeneralReason for my vote of 5 Thank you very much! Pin
GreenRecover29-Mar-11 14:49
GreenRecover29-Mar-11 14:49 
GeneralRe: Thakns Pin
Sunasara Imdadhusen31-Mar-11 18:52
professionalSunasara Imdadhusen31-Mar-11 18:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.