#1 (permalink)  
Old 01-21-2010, 04:53 PM
verb noun
 
Join Date: May 2009
Location: Albany, NY
Posts: 982
Default How to remove the blue border from linked photos

Didn't see this covered anywhere else, if it has been my apologies.

When we post a photo inside a link from another site, they end up with a blue border (that turns purple after you click) to denote it's a link, just like linked text is underlined and in blue. I don't know about everyone else, but it really bothers me, and I don't like some ugly blue or purple border on my photos. Thankfully, there's an easy way to remove it while keeping the link active.

I'm using flickr as an example, but it's the same with any other site. Here's some code automatically generated by flickr that we use to post a photo:
Quote:
<a href="http://www.flickr.com/photos/bvcphoto/4281961393/" title="Farmer's Market, Troy NY by Benny BNut, on Flickr"><mg src="http://farm3.static.flickr.com/2756/4281961393_ca12c3e355.jpg" width="500" height="333" alt="Farmer's Market, Troy NY" /></a>
Because the img tag is inside some anchor (link) tags, we get the link border. All we have to do add border="0" to the img tag attributes, like this:
Quote:
<a href="http://www.flickr.com/photos/bvcphoto/4281961393/" title="Farmer's Market, Troy NY by Benny BNut, on Flickr"><img src="http://farm3.static.flickr.com/2756/4281961393_ca12c3e355.jpg" width="500" height="333" alt="Farmer's Market, Troy NY" border="0"/></a>
When you post your photo, no blue border.

Farmer's Market, Troy NY

vs.

Farmer's Market, Troy NY

protip: the 0 in the border attribute tells the browser how many pixels wide to make the border. You can set it to whatever size you want, here it is at 130px, sort of like really gross matting:
Farmer's Market, Troy NY
__________________
Photo This
flickr
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

What’s Your Preference?

Daily Digest

Each day we send out a quick email to thousands of DPS readers to notify them of updates. This email is just short excerpt of the first few lines of our latest post with a link if you want to read it all. You can unsubscribe from this this service at any time.

This service is provided by a third party (Feedburner) and you can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Summary

For those wanting a weekly summary of what happens on this site this free email newsletter is probably your best option. It includes a summary of the tips posted to the site each week. This newsletter is subscribed to by over 25000 readers (many who also subscribe to the other options above) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter:

 
SEO by vBSEO 3.3.0