HighDots Forums  

No underlines under links

alt.html alt.html


Discuss No underlines under links in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ralph Dellinger
 
Posts: n/a

Default No underlines under links - 07-06-2003 , 02:00 AM






Could you tell me how to remove the underlines under links? Thanks



Reply With Quote
  #2  
Old   
spaghetti
 
Posts: n/a

Default Re: No underlines under links - 07-06-2003 , 02:25 AM







"Ralph Dellinger" <rdellinger (AT) cox (DOT) net> wrote

Quote:
Could you tell me how to remove the underlines under links? Thanks
In your stylesheet, add something like:

a:href { text-decoration:none; }

That'll remove underlining, etc. But you need to make sure users will still
be able to see that it's a link. Use bold text, a different, contrasting
color (don't forget colorblind users!), or something!






Reply With Quote
  #3  
Old   
David Graham
 
Posts: n/a

Default Re: No underlines under links - 07-06-2003 , 03:29 AM




"spaghetti" <spaghetti (AT) aspyre (DOT) net> wrote

Quote:
"Ralph Dellinger" <rdellinger (AT) cox (DOT) net> wrote in message
news:OUONa.13788$1a6.5752 (AT) lakeread01 (DOT) ..
Could you tell me how to remove the underlines under links? Thanks

In your stylesheet, add something like:

a:href { text-decoration:none; }

That'll remove underlining, etc. But you need to make sure users will
still
be able to see that it's a link. Use bold text, a different, contrasting
color (don't forget colorblind users!), or something!

I think it has to be like this:

a:link { text-decoration:none; }

David





Reply With Quote
  #4  
Old   
spaghetti
 
Posts: n/a

Default Re: No underlines under links - 07-06-2003 , 03:57 AM




"David Graham" <david.graham16 (AT) ntlworld (DOT) com> wrote

Quote:
a:link { text-decoration:none; }
Yeah, I've been doing the a:href thing all night long and I don't know why.
Blegh. Tired. :/





Reply With Quote
  #5  
Old   
Toby A Inkster
 
Posts: n/a

Default Re: No underlines under links - 07-06-2003 , 04:45 AM



On Sun, 06 Jul 2003 08:29:30 +0100, David Graham wrote:

Quote:
"spaghetti" <spaghetti (AT) aspyre (DOT) net> wrote in message
news:be8fc4$2d520$1 (AT) ID-159842 (DOT) news.dfncis.de...

In your stylesheet, add something like:

a:href { text-decoration:none; }

I think it has to be like this:

a:link { text-decoration:none; }
Or:

a[href] { text-decoration:none; }

(although my version won't work in IE... grumble, grumble...)

--
Toby A Inkster BSc (Hons) ARCS | mailto:tobyink (AT) goddamn (DOT) co.uk | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:tai (AT) jabber (DOT) linux.it
http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
playing://(nothing)


Reply With Quote
  #6  
Old   
P@tty Ayers
 
Posts: n/a

Default Re: No underlines under links - 07-06-2003 , 10:02 AM




Quote:
Could you tell me how to remove the underlines under links? Thanks
a:link { text-decoration:none; } in your style sheet, as others have said.

For more information on using pseudoclasses to style links, this tutorial at Project Seven is good:
http://www.projectseven.com/tutorial...sses/index.htm

Hope that helps.

--
P@tty Ayers
http://www.WebDevBiz.com
Web Design Contract, Estimate Worksheet
--



Reply With Quote
  #7  
Old   
Sid Ismail
 
Posts: n/a

Default Re: No underlines under links - 07-06-2003 , 02:31 PM



On Sun, 06 Jul 2003 08:16:04 -1000, William Starr Moake <wsmoake (AT) yahoo (DOT) com>
wrote:

: That didn't work for me in IE 5.5 or IE 6.0. I have to use this:
: a: {text-decoration:none;}
:
: Anyone know why the standard a:link doesn't work in these versions of
: IE?


It does work. Don't you remember visiting the page?

In your case, since you've been there, you need a:visited as well.

There's also a:hover and a:active, btw.

Sid


Reply With Quote
  #8  
Old   
Kris
 
Posts: n/a

Default Re: No underlines under links - 07-06-2003 , 02:48 PM



In article <vmpggvssj3rdl6vh4k3jphprpks20ihjsh (AT) 4ax (DOT) com>,
William Starr Moake <wsmoake (AT) yahoo (DOT) com> wrote:

Quote:
On Sun, 6 Jul 2003 08:29:30 +0100, "David Graham"
david.graham16 (AT) ntlworld (DOT) com> wrote:


"spaghetti" <spaghetti (AT) aspyre (DOT) net> wrote in message
news:be8fc4$2d520$1 (AT) ID-159842 (DOT) news.dfncis.de...

"Ralph Dellinger" <rdellinger (AT) cox (DOT) net> wrote in message
news:OUONa.13788$1a6.5752 (AT) lakeread01 (DOT) ..
Could you tell me how to remove the underlines under links?

I think it has to be like this:

a:link { text-decoration:none; }

That didn't work for me in IE 5.5 or IE 6.0. I have to use this:
a: {text-decoration:none;}

Anyone know why the standard a:link doesn't work in these versions of
IE?
It does. Exlanations:

1). Your links are not links (for instance, no value for HREF is
specified) -- they can still be anchors though.
2). Your links are all visited and hence in visited state that you
specified elsewhere.
3). Something else in your CSS is overriding it. Also, keep a check on
the the natural order of pseudo-selectors for anchors: a, a:link,
a:visited, a:focus, a:hover, a:focus.

If you give a URL I will be happy to investigate.


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.