link colors

P

pkg

Dear all!

I want to create a link which is displayed as an image. So I tried the
following code:
<a href="http:/...de"><img src="....gif"</a>
How can I avoid the blue frame around the image without changing the
global options for links???

Many thanks for help!

BR

pkg
 
J

John L.

pkg said:
Dear all!

I want to create a link which is displayed as an image. So I tried the
following code:
<a href="http:/...de"><img src="....gif"</a>
How can I avoid the blue frame around the image without changing the
global options for links???

Many thanks for help!

Add the following to your style sheet:

a img {
border: 0;
}
 
P

pkg

Add the following to your style sheet:

a img {
border: 0;

}

I don't have (and would prefer not to make) a special style sheet ...
I tried
------------------------
<style a img {
border: 0;

blablabla

</style>
 
J

Jonathan N. Little

pkg said:
I don't have (and would prefer not to make) a special style sheet ...
I tried
------------------------
<style a img {
border: 0;

blablabla

</style>

Because that is *not* the correct syntax.

<style type="text/css">
a img {
border: 0;
}
</style>

and should be located within the documents HEAD element.
 
J

Jukka K. Korpela

Scripsit pkg:
I want to create a link which is displayed as an image.

Stop wanting that. Problem solved.
So I tried the following code:
<a href="http:/...de"><img src="....gif"</a>

It's invalid syntax, and the URL isn't correct either.
How can I avoid the blue frame around the image without changing the
global options for links???

That would make the situation even worse, since now the user has no hint of
the image being a link. But you avoid this if you just don't use images as
links.
 
P

pkg

Because that is *not* the correct syntax.

<style type="text/css">
a img {
border: 0;}

</style>

and should be located within the documents HEAD element.

Ah yes! Thanks!
pkg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top