Okay,
I have a posting system, so when a user posts something it displays..
Now I want the background of these to be like this:
- White
- Grey
- White
- Grey
Now, I've done it before, but only using tables.. So I'd have like:
<?php
$bg = ($bg=='#eeeeee' ? '#ffffff' : '#eeeeee');
echo '<tr bgcolor="' .$bg. '">';
?>
But how would I do it for divs?
Thanks :)