Sample CSS
<style type="text/css">
<!--
.tableText1 {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
color: ##333333;
background-color:##FFFFFF;
}
.tableText2 {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
color: ##333333;
background-color:##EEEEEE;
}
-->
</style>
Sample Code <cfset count = 0>
<!-- initilize the counter (variable name count) to 0 (zero) -->
<cfoutput>
<tr <cfif count mod 2 is 0>class = "tableText1"<cfelse>class = "tableText2"</cfif>>
<!-- if count is even, background is white (FFFFFF), if count is odd background is gray (EEEEEE) -->
<td valign="top">#dataVariableName1#</td>
<td valign="top">#dataVariableName2#</td>
<td valign="top">#dataVariableName3#</td>
</tr>
<cfset count = count + 1>
</cfoutput>
|