# How can you eliminate the any color of border around linked images on web page?

**URL:** <https://forum.kirupa.com/t/how-can-you-eliminate-the-any-color-of-border-around-linked-images-on-web-page/585172>\
**Category:** web dev\
**Created:** [March 19, 2015, 11:17am UTC](https://forum.kirupa.com/t/how-can-you-eliminate-the-any-color-of-border-around-linked-images-on-web-page/585172 "2015-03-19T11:17:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeny](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@jeny](https://forum.kirupa.com/u/jeny)\
**Post date:** [March 19, 2015, 11:17am UTC](https://forum.kirupa.com/t/how-can-you-eliminate-the-any-color-of-border-around-linked-images-on-web-page/585172/1 "2015-03-19T11:17:51Z")

</div>

I have used a method which is done by the help of CSS.  
This can be done by specifying the border property for linked images in your CSS as none:  
For e.g.  
a img { border: none ; }

If Anyone know any other solution then tell me immediately,i want to implement it on my web page ?

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [March 19, 2015, 1:19pm UTC](https://forum.kirupa.com/t/how-can-you-eliminate-the-any-color-of-border-around-linked-images-on-web-page/585172/2 "2015-03-19T13:19:52Z")

</div>

What’s wrong with the solution you have? The border is how it’s rendered by default in HTML, and CSS is the language meant for changing those defaults. Plus you’ve used a succinct piece of code that is easy to read and recommended by lots of people.

There may be other ways to go about it, but I suspect they’d be needlessly convoluted compared to what you have already.

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [March 19, 2015, 1:45pm UTC](https://forum.kirupa.com/t/how-can-you-eliminate-the-any-color-of-border-around-linked-images-on-web-page/585172/3 "2015-03-19T13:45:59Z")

</div>

> [@krilnon](#):
>
> needlessly convoluted compared to what you have

BOOM! (Not a recommended solution, use CSS)

```auto
<img src="http://placekitten.com/g/200/300" onclick="location='http://www.kirupa.com'" style="cursor:pointer" />

```
