Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > A CSS pseudo class question

Reply
Thread Tools

A CSS pseudo class question

 
 
steve
Guest
Posts: n/a
 
      08-25-2005
Hi,

In this code, if I remove the 2nd line A:link {TEXT-DECORATION: none},
the eBay and Ibm will be underlined. Why? Thank you.

<html><head><STYLE type=text/css>
A:link {TEXT-DECORATION: none}
A:visited {COLOR: red;}
A:active {COLOR: purple;}
A:hover {TEXT-DECORATION: underline;COLOR:
green;Text-transform:uppercase}</STYLE></head>
<body>
<A href="http://ebay.com">eBay</A>&nbsp;&nbsp;|&nbsp;&nbsp;
<A href="http://www.ibm.com">Ibm</A></body></html>

 
Reply With Quote
 
 
 
 
Ivo
Guest
Posts: n/a
 
      08-25-2005
"steve" wrote
>
> In this code, if I remove the 2nd line A:link {TEXT-DECORATION: none},
> the eBay and Ibm will be underlined. Why? Thank you.
>
> <html><head><STYLE type=text/css>
> A:link {TEXT-DECORATION: none}
> A:visited {COLOR: red;}
> A:active {COLOR: purple;}
> A:hover {TEXT-DECORATION: underline;COLOR:
> green;Text-transform:uppercase}</STYLE></head>
> <body>
> <A href="http://ebay.com">eBay</A>&nbsp;&nbsp;|&nbsp;&nbsp;
> <A href="http://www.ibm.com">Ibm</A></body></html>
>


Links are underlined by default in practically all browsers. To have links
with no lines under them, you need that rule to explicitly state so. Also,
the moment a link becomes a visited link according to the browser's memory,
any :link pseudo-rules will no longer apply to it. They might have more
details in a newsgroup dedicated to CSS, such as
news:comp.infosystems.www.authoring.stylesheets.
hth
ivo


 
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
Control of CSS pseudo elements through a STYLE attribute in .NET framework Kevin Frey ASP .Net 0 07-28-2006 07:17 AM
vertical padding on first-letter pseudo class /w gecko Jonathan N. Little HTML 1 11-02-2005 01:52 AM
Re: Class selector, ID selectors and link pseudo-classes Luigi Donatello Asero HTML 1 06-04-2005 06:58 PM
Class selector, ID selectors and link pseudo-classes Luigi Donatello Asero HTML 4 06-04-2005 05:02 PM
add window.status javascript to a:hover css pseudo-class? Bob P. Javascript 2 06-25-2004 05:51 PM



Advertisments