Can we redefine a seletor in a class?

  • Thread starter Thread starter paul
  • Start date Start date
P

paul

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
 
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
 
Back
Top