ZFGC
Resources => Coding => Topic started by: Fox on June 25, 2007, 05:57:10 pm
-
Right, so I want a picture to link to a different website. When I use this:
<a href="www.homepage.com"><img src="www.pictures.com/pic.jpg"></a>
then it does link to that site, but it has an ugly blue border around it. How can I prevent that?
-
<a href="www.homepage.com"><img src="www.pictures.com/pic.jpg" border="0"></a>
I think.... don't hold me to it though
-
<a href="www.homepage.com"><img src="www.pictures.com/pic.jpg" border="0"></a>
I think.... don't hold me to it though
You win several internets. It worked.
-
Aye. "boarder" is technically a deprecated element, you should use CSS to define the border style as 0px or none, but most browsers still support it.
-
Aye. "boarder" is technically a deprecated element, you should use CSS to define the border style as 0px or none, but most browsers still support it.
Yeah you're right.
<style type="text/css">
img
{
border: 0;
}
</style>
Use this fox, the most browsers supports it.
-
Correct. Another way to specify this style would to be in a span or other separating element:
<span style="border: 0;"><img src="lol.jpg" /></span>
Forgive me if my syntax isn't exactly correct, it's been a few years since I've done a lot of web design and CSS, but I believe that's correct.
-
Correct. Another way to specify this style would to be in a span or other separating element:
<span style="border: 0;"><img src="lol.jpg" /></span>
Forgive me if my syntax isn't exactly correct, it's been a few years since I've done a lot of web design and CSS, but I believe that's correct.
That is similar to the above its just the css is located within the span and also its not a link, I find its best to use an external .css mostly.