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?
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?
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.
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)
Babies don't need a vacation, but I still see them at the beach... it pisses me off! I'll go over to a little baby and say 'What are you doing here? You haven't worked a day in your life!'
Steven Wright
<img class="nobdr" src"path/to/image.jpg" /> (for xhtml)<img class="nobdr" src"path/to/image.jpg"></> (</> for xhtml)
--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.
Thanks to all of you for your comments - very helpful! (",)