|
Alternating row colors
| Author | |
| Description | Alternate your row colors making it easier for your users to read your site. You will need to place this code inside a loop for it to work. |
| Rating | (8 votes) |
PHP Code
if($i=='1') {
echo('<div style="background-color: #ffffff;">content here</div>');
$i = '2';
}else{
echo('<div style="background-color: #f1f1f1;">content here</div>');
$i = '1';
}
Comments
No comments posted yet.
|