I am trying to apply a class to a link that is picking up style from the div that it is in. Here is the css for that existing style from the div:
}
#content {
float: left;
padding: 5px;
width: 680px;
min-height: 550px;
height: auto;
}
#content a:link {
color: #000000;
}
#content a:visited {
color: #000000;
}
#content a:hover {
color: #DA830C;
text-decoration: none;
}
I created the following class in order to change the color.:
a.center_link a {
color: #CC3366;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a.center_link:link, a.center_link:visited, a.center_link:hover {
color: #CC3366;
}
I thought that by applying a class to this link it would override whatever styling the Div Content puts on it but I can’t get it to change no matter what I try so I must be wrong. Some help would be appreciated. Here’s the relevant HTML:
<div id="content"><!-- InstanceBeginEditable name="content" -->
<div id="affiliate-div">
<!-- start new product -->
<form method="get" action="http://www.dpbolvw.net/interactive" target="_blank">
<table border="0" width="665" cellpadding="5" cellspacing="4">
<tr>
<td valign="top" width="17%"><img src="http://img3.musiciansfriend.com/dbase/pics/products/tn/4/3/4/375434.jpg" border="0" alt="Musician's Friend Vintage Electric Guitar Case"/></td>
<td valign="top" ><p><b><font size="4">Musician's Friend Vintage Electric Guitar Case</font></b></p>
<p><font size="2">If you love the look of a classic wooden case, the Musician's Friend Vintage Electric Guitar Case is the one for you! It's constructed of 5-ply, cross-grain Luan plywood and features a distressed, leather-like finish. The case is extremely durable and road-ready. Plush interior lining, internal storage pocket and lockable. All hardware is triple chrome-plated. The case's carrying handle is ergonomically designed and padded for added comfort. Body area: 18-3/4"L x 12-3/4"W. Total length: 42".</font></p>
<hr>
<input type="hidden" name="pid" value="2849393"/>
<input type="hidden" name="aid" value="10381297"/>
<input type="hidden" name="cjsku" value="544769"/>
<input type="hidden" name="url" value="http://www.musiciansfriend.com/product/Musicians-Friend-Vintage-Electric-Guitar-Case?sku=544769"/>
<input type="submit" value="See More Details"/> </td>
</tr>
</table>
</form>
[B]<a href="hardshell_cases2.html" class="center_link">MORE</a> </div>[/B]
<!-- InstanceEndEditable --> </div><!-- end #content div -->
Thanks