Skip to content

Instantly share code, notes, and snippets.

@kirandash
Created April 27, 2017 08:23
Show Gist options
  • Save kirandash/9daccf9deb9c241acb313f6843c22d44 to your computer and use it in GitHub Desktop.
Save kirandash/9daccf9deb9c241acb313f6843c22d44 to your computer and use it in GitHub Desktop.
Clear columns for uneven height
<?php
if($count %2 == 0): echo "<div class='clearfix visible-xs'></div>"; endif;
if($count %4 == 0): echo "<div class='clearfix hidden-xs'></div>"; endif;
$count++;
endwhile; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment