Skip to content

Instantly share code, notes, and snippets.

@hatefulcrawdad
Created August 7, 2012 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatefulcrawdad/3286324 to your computer and use it in GitHub Desktop.
Save hatefulcrawdad/3286324 to your computer and use it in GitHub Desktop.
IE8 Block Grid Clear
// UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE8 SUPPORT AND ARE USING .block-grids
// $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'both'});
// $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'both'});
// $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'both'});
// $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'both'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment