HTML - Remove border around image

December 2016




Issue


Hello everyone, I'll explain the problem, I created a website in short, I made a link in an image, it works very well but my problem is that there is a border displayed around it.

I would like to know it is possible to remove it.

Solution


In CSS, put this code
a img  
{  
border: none;  
}  

All site images constituting part of the links are removed, without need to specify a class in the tags!

Note


Solved by jmangelini

Related :

This document entitled « HTML - Remove border around image » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.