Can we redefine a seletor in a class?

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
 
P

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top