Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How do I get rid of the border on an image when I make it a live link?

Reply
Thread Tools

How do I get rid of the border on an image when I make it a live link?

 
 
johnsonholding@yahoo.com
Guest
Posts: n/a
 
      03-26-2006
I have an image I want to make a link, but I found out that once I do
that, it creates a small border around it - can I get rid of it so it
isn't there? I don't want the 1 pixel border at all. Thanks

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      03-26-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

> I have an image I want to make a link, but I found out that once I do
> that, it creates a small border around it - can I get rid of it so it
> isn't there?


With the CSS border property (although it is a strong visual indicator that
the image is a link, so removing it might not be a good idea)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
 
kenetik@gmail.com
Guest
Posts: n/a
 
      03-26-2006
in the code for the image source add border="0"

<img src="whatever.jpg" border="0" />

 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      03-26-2006
(E-Mail Removed) wrote:
> in the code for the image source add border="0"
>
> <img src="whatever.jpg" border="0" />
>

Better in CSS on have to do it once

A IMG { border: 0; }

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      03-26-2006
With neither quill nor qualm, (E-Mail Removed) quothed:

> in the code for the image source add border="0"
>
> <img src="whatever.jpg" border="0" />


Sucko sucko sucko! That line of markup is crap. Not only has "border"
been deprecated which means it should not be used under the latest
standards but there is no "alt" attribute, either.

When's the last time _you_ looked at the specs?

--
Neredbojias
Contrary to popular belief, it is believable.
 
Reply With Quote
 
johnsonholding@yahoo.com
Guest
Posts: n/a
 
      03-26-2006
So what do you purpose? I tried the border=0 and it worked fine for
me, but if there is a better way, please let me know. AND , I don't
know anything about CSS.

 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      03-26-2006
(E-Mail Removed) wrote:

> So what do you purpose?


Are you responding to something?
http://www.safalra.com/special/googlegroupsreply/

> I tried the border=0 and it worked fine for me, but if there is a better
> way, please let me know. AND , I don't know anything about CSS.


First - learn HTML 4.01. It was published almost a decade ago and made the
alt attribute on images mandatory. (Focus on those attributes and elements
in the Strict DTD).

Second - learn CSS 2. It came out a couple of years later and replaces the
presentational aspects of HTML (making HTML much more manageable, reducing
bandwidth needed, and discouraging the abuse of semantic markup (such as
blockquote and table) for the presentational effects it gives in some
common browsers instead of for its meaning).

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      03-26-2006
With neither quill nor qualm, (E-Mail Removed) quothed:

> So what do you purpose? I tried the border=0 and it worked fine for
> me, but if there is a better way, please let me know. AND , I don't
> know anything about CSS.


You do need to learn at least some css; there's no way around it in
today's html. A quick though non-optimal fix for the image thing is:

<img style="border:0;" src="jugs.jpg" alt="Two earthy containers">

Normal css uses a stylesheet or functions from a style segment in the
<head> section.

--
Neredbojias
Contrary to popular belief, it is believable.
 
Reply With Quote
 
johnsonholding@yahoo.com
Guest
Posts: n/a
 
      03-27-2006
Do I need to add anything else but what you have shown?

> <img style="border:0;" src="jugs.jpg" alt="Two earthy containers">


 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      03-27-2006
With neither quill nor qualm, (E-Mail Removed) quothed:

> Do I need to add anything else but what you have shown?
>
> > <img style="border:0;" src="jugs.jpg" alt="Two earthy containers">


It depends on if you have anything else screwed up.

--
Neredbojias
Contrary to popular belief, it is believable.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get rid of border line around linked image Kian HTML 18 11-27-2012 10:03 PM
how to get rid off border around anchor link Jack Jarmush HTML 3 08-03-2009 02:57 AM
Getting rid of border around image Kevin Audleman HTML 12 02-13-2008 05:32 PM
How to get rid of GridView border magic? progdis@gmail.com ASP .Net 2 08-20-2006 04:10 PM
Get Rid Of Tkinter Canvas Border Martin Python 1 06-29-2004 11:07 AM



Advertisments