PC Review


Reply
Thread Tools Rate Thread

Can we redefine a seletor in a class?

 
 
paul
Guest
Posts: n/a
 
      10th Feb 2006
HI! I have a: link selector define in one color already but I would like to
redefine in it in another color in a class is this possible? I would like to
apply a class to a cell inwhich the links would now be a different color. If
it is possible what the proper syntax for inserted it into a .class?

a:link {
color: #c86431;
text-decoration: underline;
}
a:visited {
color: #C86431;
text-decoration: underline;
}
a:hover {
color: #FF6600;
text-decoration: none;

Paul


 
Reply With Quote
 
 
 
 
paul
Guest
Posts: n/a
 
      10th Feb 2006
HI! Well I found the answer so here it is if anyone needs it.
Apply the class name to the A tag in the document.

eg.<a href="#privacy" class="main_iframe_menu_title_cells">Quidelines</a>

-----In external style sheet---------
a.main_iframe_menu_title_cells:link {
color: #321E0A;
text-decoration: underline;
}
a.main_iframe_menu_title_cells:visited {
color: #C86431;
text-decoration: underline;
}
a.main_iframe_menu_title_cells:hover {
color: #814707;
text-decoration: none;
}
-------End-----------

Paul

"paul" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> HI! I have a: link selector define in one color already but I would like
> to redefine in it in another color in a class is this possible? I would
> like to apply a class to a cell inwhich the links would now be a different
> color. If it is possible what the proper syntax for inserted it into a
> .class?
>
> a:link {
> color: #c86431;
> text-decoration: underline;
> }
> a:visited {
> color: #C86431;
> text-decoration: underline;
> }
> a:hover {
> color: #FF6600;
> text-decoration: none;
>
> Paul
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Redefine the method in parent class without making too many changes Curious Microsoft Dot NET 0 17th Oct 2007 10:02 PM
Redefine the method in parent class without making too many changes Curious Microsoft Dot NET 0 17th Oct 2007 10:02 PM
Redefine content =?Utf-8?B?RXBpbm4=?= Microsoft Powerpoint 0 5th May 2006 11:00 PM
Can it possible redefine class with subclass when inherit base class with sub class? ABC Microsoft C# .NET 4 10th Jan 2006 11:13 PM
Re: redefine AD namespace? Tim Hines [MSFT] Microsoft Windows 2000 Active Directory 0 7th Aug 2003 05:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 PM.