image as link in border

V

Volter

Hello!
When I put image as link it is in the border on IE.
How can I remove this border?

<a href=#> <img src=gif> </a>
 
B

Buzby

Hello!
When I put image as link it is in the border on IE.
How can I remove this border?

<a href=#> <img src=gif> </a>

<a href=#> <img src=gif border="0"> </a>
 
D

David Dorward

Volter said:
When I put image as link it is in the border on IE.
How can I remove this border?

First decide if you *really* want to do this. Like underlining of text,
a border is a clue to the user that the image is a link and not just
something to look at.

Then use the CSS border property.
<a href=#>

Attribute values including the "#" character must be quoted in HTML.
<img src=gif> </a>

The alt attribute for the img element is required in current versions
of HTML.
 
V

Volter

<a href=#> <img src=gif border="0"> </a>

Yes! I put border="0" to <a href> so thats why it doesn't work :)
Thanks :)
 
J

Jonathan N. Little

Volter said:
Yes! I put border="0" to <a href> so thats why it doesn't work :)
Thanks :)

Or by not relying on deprecated methods, in stylesheet

A IMG { border: 0; }
 

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,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top