bigracefan
Programmer
I'm getting started at css and I'm at point where I need some help. I've got a page that I'm trying to change the link color. Here's what I've got to work with (this is within a table):
Here is my code from my css:
This the output of a report and I'm alternating colors on each row. The links are the only thing that doesn't follow my styles. They're always grey. I can't figure out where to insert the class on the href.
Thanks.
Code:
<%For i = 1 to cPLMaster.recordcount
cPLMaster.MoveTo(i)
If Left(cPLMaster.column("PolicyID"),1)="Q" then
href="frmrating2.asp?PolicyId="
Else
href="../../unitedemployees/frmHistory.aspx?PolicyId="
End If
If i MOD 2 = 0 Then clr="class=""rptresults2""" Else clr="class=""rptresults1"""%>
<tr>
<%If cAGMaster.column("AgencyStatus")="A" Or left(cPLMaster.column("PolicyID"),1)<>"Q" Then%>
<td <%=clr%> height="15"><a href="<%=href%><%=trim(cPLMaster.Column("PolicyId"))%>&InceptionDate=<%=cPLMaster.Column("InceptionDate")%>"><%=cPLMaster.Column("PolicyID")%></a></td>
<%Else%>
<td <%=clr%> height="15"><%=cPLMaster.Column("PolicyID")%></td>
<%End If%>
<td <%=clr%> height="15"><%=cPLMaster.Column("PreviousPolicyID")%></td>
<td <%=clr%> height="15" align="center"><%=cPLMaster.Column("InceptionDate")%></td>
<td <%=clr%> height="15"><%=cPLMaster.Column("PlanID")%></td>
<td <%=clr%> height="15"><%=cPLMaster.Column("InsName")%></td>
<td <%=clr%> height="15"><%=cPLMaster.Column("InsAddress")%></td>
<%If (Request.Cookies("SecurityLevel")) >= 2 AND left(cPLMaster.column("PolicyID"),1)<>"Q" Then%>
<td <%=clr%> height="15"><a href="frmCatNoticeDetail.asp?PolicyId=<%=trim(cPLMaster.Column("PolicyId"))%>&InceptionDate=<%=cPLMaster.Column("InceptionDate")%>">Add</a></td>
<%Else%>
<td <%=clr%> height="15"> </td>
<%End If%>
</tr>
<%Next%>
Here is my code from my css:
Code:
.rptresults1 {
color:#000066;
background-color:#f5f7f7;
}
.rptresults2 {
color:#f5f7f7;
background-color:#000066;
Thanks.