$class = ($i % 2 ? 'low' : 'high');
<table>
<tr>
<td class="<?=$class?>">Row 1</td>
</tr>
<tr>
<td class="<?=$class?>">Row 2</td>
</tr>
<tr>
<td class="<?=$class?>">Row 3</td>
</tr>
</table>
Monday, March 30, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment