how do I make one link a different color from the rest?
Posted: Thu Feb 11, 2010 9:36 pm
I've been asked to work on some html which kinda seemed simple with the first few items but this one has me stumped.
I have a css that specifies ALL links have text that's black in color. What I'm trying to do is make one specific link red.
Here's the CSS including the anchors and the style I THOUGHT would work (u2utxt).
here's the html I'm dealing with. I'm trying to keep the $newu2umsg from being included in the anchor and then make it red.
I really appreciate any help anyone can offer
thanks!
I have a css that specifies ALL links have text that's black in color. What I'm trying to do is make one specific link red.
Here's the CSS including the anchors and the style I THOUGHT would work (u2utxt).
Code: Select all
<style type="text/css">
body {
scrollbar-base-color: $altbg1;
scrollbar-arrow-color: $header;
}
a{
color: $link;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.u2utxt{
font-size: 10px;
font-family: $font;
font-weight: bold;
color: red;
}
here's the html I'm dealing with. I'm trying to keep the $newu2umsg from being included in the anchor and then make it red.
Code: Select all
<table border="0" cellspacing="1" cellpadding="0" width=$tablewidth class=header>
<tr><td width="74%" $topbgcode>
<table border="0" width="100%" cellpadding="0" cellspacing="0" background=images/vcc/NewRobEli.jpg>
<tr><td align="left" valign="top" rowspan="2"><a href="http://www.vancouvercivics.com/home.php"><img src="images/pixel_clear.gif" alt="$bbname" border="0" height=146 width=200/></a><br /></td><td align="right" valign="top"><br/>
<font class="smalltxt">$lastvisittext</font><br />
<font class="u2utxt">$newu2umsg</font></tr>
<tr>
thanks!