Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2004, 02:49 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 124
justinw RepRank 0
Default How to remove the blue border around a linked image?

Hi all!

I need to place a link on image to another site, but I don't want the blue border to be around the image. How do I prevent that from showing, as on most other sites?
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #2 (permalink)  
Old 01-25-2004, 03:33 PM
WebProWorld New Member
 

Join Date: Jan 2004
Location: Montreal, Canada
Posts: 24
ChristinaS RepRank 0
Default

Hah! This one is easy.
Just add the border="0" paremater to your img tag.

Your html tags may be something like this:

[img]image.jpg[/img]

If you omit the width and height it will default to whatever actual width and height the image has.

By specifying the border parameter you won't have the blue border around it (or other color, whatever it is for links in your web page set up).

It doesn't matter if your <a href=....> tag points to a web page on your site or elsewhere or the [img]...[/img] refers to an image on your site or elsewhere. The principle is the same.
Reply With Quote
  #3 (permalink)  
Old 01-25-2004, 06:34 PM
mikmik's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 3,406
mikmik RepRank 1
Default

yes ChristinaS, that works.
You can also make a class in your CSS document if you are using one. I do this for all my sites :
.classname ( I use 'nobrdr' myself)

So that you have:
.nobrdr {border:0;}

And put it in all places that you don't want a border like this :
<img class="nobdr" src"path/to/image.jpg"></> (</> for xhtml)
__________________
What I am is what I am, are you what you are, or what.
Eddie Brickel
Reply With Quote
  #4 (permalink)  
Old 01-25-2004, 06:53 PM
WebProWorld Member
 

Join Date: Jan 2004
Location: Colorado
Posts: 59
disciple RepRank 0
Default

Quote:
<img class="nobdr" src"path/to/image.jpg"></> (</> for xhtml)
<img class="nobdr" src"path/to/image.jpg" /> (for xhtml)
__________________
Christian Web Hosting
Digitals
Reply With Quote
  #5 (permalink)  
Old 01-25-2004, 11:43 PM
redcircle's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Grand Rapids, MI USA
Posts: 553
redcircle RepRank 0
Default

--OR--

in your stylesheet just define

img {
border:0;
}

This will save you the time of adding the class to your existing images.
__________________
www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.
Reply With Quote
  #6 (permalink)  
Old 01-26-2004, 01:17 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 124
justinw RepRank 0
Default

Thanks to all of you for your comments - very helpful! (",)
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: , , , , ,



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

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


Search Engine Optimization by vBSEO 3.2.0