Picture Links

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Picture Links

Post by evilmonkey »

Cheers Mates!

I have made a picture link, the problem is, it has a blue outline around it. I have tried everythig in Front Page, HTML, and Dreamweaver to get rid of it. I know how to change the colour of the line, but I need to get rid of it. Suggestions?

Cheers,
EvilMonkey Admin.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

getting ride of blue underline

Post by phpScott »

I you want to get rid of the blue underline in a link see this example

Code: Select all

<a style="text-decoration: none" href="somepage.html">somepage.html</a>
the style="text-decoration: none" is the important part of this it will get rid of the underline on the link.

Code: Select all

<body alink="#000000" link="#000000" vlink="#000000">
 <a style="text-decoration: none" href="index.htm">index</a>
will change the intial link the hover llink and the visited link colours all to black.
Hope this is what you where looking for.

phpScott
User avatar
EvilWalrus
Site Admin
Posts: 209
Joined: Thu Apr 18, 2002 3:21 pm
Location: Springmont, PA USA

Post by EvilWalrus »

to remove the border aroudna picture (via link), add the border=0 attribute to the tag, or in CSS use:

Code: Select all

img &#123;
    border: none;
&#125;
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Hi.

There's a much easier way Ifound through HTML:

Code: Select all

<A HREF="whatever"><IMG SRC="whatever" border="0"></a>
To evilwalrus:

CHEERS TO EVIL!

Cheers.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If you use the CSS example that EvilWalrus posted then you won't have to remember to do border="0" on each image - it will be done automatically (isn't CSS great).

Mac
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

thanks MacCow :lol:

Thanks everyone else.
Post Reply