All pastes #556813 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-10 19:29 UTC
rendered paste body
<style type="text/css">
.post_one {
  background: #ff0000;
}

.post_two {
  background: #000000;
}
</style>

while ( have_posts()......

  if ( $post_class == 'post_one' ) {
    $post_class = 'post_two';
  }
  else {
    $post_class = 'post_two';
  }

  <div class="<?php echo $post_class; ?>">
    <post content here>
  </div>




endwhile;