I am redoing my pages with style sheets, but I've run into a small snag. I have an externally linked style sheet that sets all the attributes for all the <TABLE> elements including <TH>, <TR>, and <TD>. However, on a couple of my tables, I want to alternate the colors for <TD>. I used to use the folowing code code to do this:
This no longer works with the style sheet. I thought if I specified attributes (like BGCOLOR) in the tag, it would override the style sheet settings. It doesn't. Or, is there a better way?
Thanks!
Code:
<TABLE>
<cfif #CurrentRow# MOD 2 EQ 0>
<cfset Color="#Application.Lighter#">
<cfelse>
<cfset Color="#Application.LightColor#">
</cfif>
<TR>
<TD BGCOLOR="#Color#"><A HREF="DiscussionIndex.cfm?Forum=#GetForums.ForumID#">#GetForums.ForumName#</a></TD>
</TR>
</TABLE>
This no longer works with the style sheet. I thought if I specified attributes (like BGCOLOR) in the tag, it would override the style sheet settings. It doesn't. Or, is there a better way?
Thanks!