How to Get Rid of the Link Outline on Images in CSS
- 1). Right-click the HTML file that contains your image. Click "Open With," then click your preferred HTML editor. You can edit the image border in any HTML editor.
- 2). Create the CSS class that sets the border to zero pixels. The following code creates a CSS class for your image:
img.borders {
border 0px;
} - 3). Link the new class to your image. The following code is an example of an image that uses the CSS class created in step two:
<img src="myimage.jpg">
Use the "class" property to link each image to the CSS class that removes the image border.
Source...