View Single Post
Old 01-30-2007, 11:10 PM  
scouser
marketer.
 
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
Quote:
Originally Posted by DjSap View Post
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%2)?"bg1":"bg2";$i++;?>">

In your style sheet you put:
.bg1 {background-color: #FFF;}
.bg2 {background-color: #000;}
Yeah. I wasn't really thinking straight, then
scouser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote