Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - image as link in border

 
Thread Tools Search this Thread
Old 05-23-2006, 12:20 PM   #1
Default image as link in border


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>




Volter
  Reply With Quote
Old 05-23-2006, 01:05 PM   #2
Buzby
 
Posts: n/a
Default Re: image as link in border

> 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>


  Reply With Quote
Old 05-23-2006, 01:56 PM   #3
David Dorward
 
Posts: n/a
Default Re: image as link in border

Volter wrote:
> 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.

  Reply With Quote
Old 05-23-2006, 02:11 PM   #4
Volter
 
Posts: n/a
Default Re: image as link in border

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

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


  Reply With Quote
Old 05-23-2006, 02:14 PM   #5
Volter
 
Posts: n/a
Default Re: image as link in border

>> <a href=#>
>
> Attribute values including the "#" character must be quoted in HTML.


I know that but this is only example

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

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


I dont't knew that

Thank You wery much


  Reply With Quote
Old 05-23-2006, 03:01 PM   #6
Jonathan N. Little
 
Posts: n/a
Default Re: image as link in border

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

>
> 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; }

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump