VBdotnet2005
asked on
How to add font color in the same class when using link in CSS?
.FocusedRowStrong td {
background-color: #aeb6bf !important;
}
background-color: #aeb6bf !important;
}
ASKER
Right now, It changes only background color in td. What if I have a link in a td, how can I format link's font and color in the same class .FocusedRowStrong ?
For the link, try:
a:link .FocusedRowStrong td {
color: #0000ff;
text-decoration: underline;
}
You may also want to seta:visited .FocusedRowStrong td {
color: #0000ff;
text-decoration: underline;
}
The CSS for a link inside the TD would be link this:
.FocusedRowStrong td a:link {
color: red;
}
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Are you just looking to add:
Open in new window
to your selector?