View Single Post
Old 01-30-2007, 11:57 AM  
DjSap
Confirmed User
 
Join Date: Jul 2002
Posts: 3,869
That's a very bulky way of doing it

At the top of the page you put:
<?$i;?>

Then in index.php you sorround the post with this div:
<div class="<?=($i&#37;2)?"bg1":"bg2";$i++;?>">

In your style sheet you put:
.bg1 {background-color: #FFF;}
.bg2 {background-color: #000;}
__________________
Blog Themes, TGP Design, Writing Services, Grunt Work
ICQ: 66871495
DjSap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote