Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How do I get links to NOT be underlined ?

Reply
Thread Tools

How do I get links to NOT be underlined ?

 
 
JD
Guest
Posts: n/a
 
      08-09-2004
How do I get links to *not* be underlined, and black instead of blue.

I read this would work by placing it between ,<head> and </head>, but it
doesn't:

<style>
A:link {color: #000000; text-decoration: none}
</style>



 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      08-09-2004
"JD" <indyfladon(REMOVETHISPART)@yahoo.com> wrote:

> How do I get links to *not* be underlined, and black instead of blue.


We could tell you, but then we would have to...

> I read this would work by placing it between ,<head> and </head>, but
> it doesn't:
>
> <style>
> A:link {color: #000000; text-decoration: none}
> </style>


Well, get your money back then.

Hint: What you are asking for is one of the most common abuses of CSS.
What you had read is half-way successful in creating the damage.

So just stop trying it.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
 
 
 
Larry R Harrison Jr
Guest
Posts: n/a
 
      08-09-2004

"JD" <indyfladon(REMOVETHISPART)@yahoo.com> wrote in message
news:I0ERc.3427$...
> How do I get links to *not* be underlined, and black instead of blue.
>
> I read this would work by placing it between ,<head> and </head>, but it
> doesn't:
>
> <style>
> A:link {color: #000000; text-decoration: none}
> </style>
>
>
>

<style type="text/css">
<!--
a:hover { text-decoration:none; color : #808040;}
-->
</style>

the A:hover line is the key. Also, chance the color # to the one matching
blank (can't remember what it is).

LRH


 
Reply With Quote
 
Larry R Harrison Jr
Guest
Posts: n/a
 
      08-09-2004
I apologize. My method only does this if you hover your mouse over the link.
If you want it to not be underlined at all period, you'd also have this:

A:LINK{ text-decoration : none; color:#000000}

LRH



"Larry R Harrison Jr" <> wrote in message
newsQERc.3634$yh.2231@fed1read05...
>
> "JD" <indyfladon(REMOVETHISPART)@yahoo.com> wrote in message
> news:I0ERc.3427$...
> > How do I get links to *not* be underlined, and black instead of blue.
> >
> > I read this would work by placing it between ,<head> and </head>, but it
> > doesn't:
> >
> > <style>
> > A:link {color: #000000; text-decoration: none}
> > </style>
> >
> >
> >

> <style type="text/css">
> <!--
> a:hover { text-decoration:none; color : #808040;}
> -->
> </style>
>
> the A:hover line is the key. Also, chance the color # to the one matching
> blank (can't remember what it is).
>
> LRH
>
>



 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      08-09-2004
On Sun, 8 Aug 2004 23:36:51 -0700, Larry R Harrison Jr <>
declared in alt.html:

[Top-posting corrected]
>> <style type="text/css">
>> <!--
>> a:hover { text-decoration:none; color : #808040;}
>> -->
>> </style>
>>

> I apologize. My method only does this if you hover your mouse over the link.
> If you want it to not be underlined at all period, you'd also have this:
>
> A:LINK{ text-decoration : none; color:#000000}


Which is effectively what the OP already had, except he/she didn't
include the unnecessary cargo-cult HTML comments. You did get one thing
right, though - the OP is missing the required type attribute on the
style element. While IIRC most browsers will default to CSS if no type
is specified, this could be what is causing the problem. Of course,
there could be any number of other factors involved, and as usual a URL
is worth a thousand lines of example code.

BTW: Please don't post upside down.
http://www.allmyfaqs.com/faq.pl?How_to_post
http://en.wikipedia.org/wiki/Top-posting

This will help:
http://home.in.tum.de/~jain/software/oe-quotefix/

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf 2004
 
Reply With Quote
 
Karl Groves
Guest
Posts: n/a
 
      08-09-2004

"JD" <indyfladon(REMOVETHISPART)@yahoo.com> wrote in message
news:I0ERc.3427$...
> How do I get links to *not* be underlined, and black instead of blue.


The bigger question is "Why?"
"Links Want To Be Links"
http://www.cs.tut.fi/~jkorpela/www/links.html


--
Karl Core

Link of the day: http://216.127.86.74/dubyaresume.com/

http://www.karlcore.com
http://www.usabilityinfo.com
http://www.murderthestupid.com


 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      08-09-2004
On Mon, 9 Aug 2004 01:35:01 -0400, "JD"
<indyfladon(REMOVETHISPART)@yahoo.com> wrote:

: How do I get links to *not* be underlined, and black instead of blue.


What a marvellous way to hide links. Why put it there?

Sid

 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      08-09-2004
Sid Ismail wrote:

> On Mon, 9 Aug 2004 01:35:01 -0400, "JD"
> <indyfladon(REMOVETHISPART)@yahoo.com> wrote:
>
> : How do I get links to *not* be underlined, and black instead of blue.
>
>
> What a marvellous way to hide links. Why put it there?
>
> Sid
>


What if it's a menu, and you are swapping the background colour/image in
CSS instead? What if they're not really links, but triggers for JS code?
Etc etc.



--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      08-09-2004
JD wrote:

> How do I get links to *not* be underlined, and black instead of blue.
>
> I read this would work by placing it between ,<head> and </head>, but it
> doesn't:
>
> <style>
> A:link {color: #000000; text-decoration: none}
> </style>
>
>
>


I does work - you must have done something wrong. Post a demo url and
I'll have a look for u.

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      08-09-2004
SpaceGirl wrote:

> What if they're not really links, but triggers for JS code?


Then why use the <a/> element, which is meant for links?

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./counting_crows/hanginaround_04/01_hanginaround_04_rock_mix.ogg

 
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
Gridview pages are all underlined Denny ASP .Net 4 06-05-2009 09:50 PM
Hyperlinks NOT underlined in website using CSS dreamspinner3 Computer Support 1 03-12-2007 08:06 PM
Underlined links - how to turn off? Bobby Firefox 1 12-31-2005 07:54 PM
Underlined text in <TEXTPATH> (VML)? EDienske XML 0 04-29-2005 09:03 AM
Re: some links underlined; some aren't; why? Steve Pugh HTML 0 08-15-2003 12:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57