# Remove Blue Link Border on Images

**URL:** <https://forum.kirupa.com/t/remove-blue-link-border-on-images/311181>\
**Category:** web dev\
**Created:** [June 29, 2010, 2:07pm UTC](https://forum.kirupa.com/t/remove-blue-link-border-on-images/311181 "2010-06-29T14:07:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiveMeCoffee](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@GiveMeCoffee](https://forum.kirupa.com/u/GiveMeCoffee)\
**Post date:** [June 29, 2010, 2:07pm UTC](https://forum.kirupa.com/t/remove-blue-link-border-on-images/311181/1 "2010-06-29T14:07:27Z")

</div>

Hello all.  
I’m using a php code that allows me to pull a random image from a selected folder. Once this image is pulled into my page, I want to have an active link on it to. All is fine, however, this image has a blue border around it in Windows browsers. I tried adding the following to my style sheet:

a img { border:none; }

But it doesn’t seem to be working.

This is the code snippet found inside my main page:  
\<!— Start of code --\>  
\<a href=“testimonials.php” id=“sidelinks”\>\<?php include “randomimage.php”; ?\>\</a\>

\<!-- end of code --\>

This is the code found on the ‘randomimage.php’  
\<!-- Start of code --\>  
\<?php

$total = “7”;

$file\_type = “.jpg”;

$image\_folder = “images/random”;

$start = “1”;

$random = mt\_rand($start, $total);

$image\_name = $random . $file\_type;

echo “\<img src=”$image\_folder/$image\_name" alt="$image\_name" /\>";

?\>

\<!-- end of the code --\>

Ho do I get rid of this pesky border?  
Thanks in advance to all.
