Skip to content

Instantly share code, notes, and snippets.

@thadallender
Created February 3, 2014 22:21
Show Gist options
  • Save thadallender/8793654 to your computer and use it in GitHub Desktop.
Save thadallender/8793654 to your computer and use it in GitHub Desktop.
Change from a 3 column to 5 column grid for Sell Media archives
.sell-media .sell-media-grid { width: 18%; }
.sell-media .sell-media-grid:nth-child(5n) { margin-right: 0; }
.sell-media .sell-media-grid:nth-child(3n), .sell-media .sell-media-grid .end { margin-right: 2%; }
.sell-media .sell-media-grid:nth-child(5n+1) { clear: left; }
.sell-media .sell-media-grid:nth-child(3n+1) { clear: none; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment