$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>
Showing posts with label shorthand. Show all posts
Showing posts with label shorthand. Show all posts
Monday, March 30, 2009
Subscribe to:
Posts (Atom)