It seems my <li>'s need to be coded by hand not sure.
All I need is the logic behind making the <li>=>divs alternating colors dynamicallyCheersCode:<div class="post_body nicelist"> <ol> <li class="palt"> <!-- background: #eee;--> <div class="comment_author left"> <span class="comment"><?php echo $row_rsnews['txtHeading']; ?></span></div> <div class="clearer"></div> <div class="body"> <p><?php echo nl2br($row_rsnews['memdescription']); ?></p> </div> </li> <!--color end background: #eee;--> <li id="comment-256"> <!--comment num random; background: #fff;--> <div class="comment_author left"> <span class="comment"><a href="#">Elementum</a></span> <div class="date"><a href="#">December 21st, 2007 at 12:46 pm</a></div> </div> <div class="clearer"></div> <div class="body"> <p>Comments are cool!</p> </div> </li> <!--color end background: #fff;--> </ol> </div>



Reply With Quote


Bookmarks