Skip to content

Instantly share code, notes, and snippets.

@mcbrwr
Created January 27, 2016 19:38
Show Gist options
  • Save mcbrwr/96b0b6bd9011f4faab82 to your computer and use it in GitHub Desktop.
Save mcbrwr/96b0b6bd9011f4faab82 to your computer and use it in GitHub Desktop.
Bootstrap 3 - clear columns
.row {
> .col-sm-4 {
@media screen and (min-width: @screen-sm-min){
&:nth-child(3n + 1) {
clear: left;
}
}
}
> .col-sm-3 {
@media screen and (min-width: @screen-sm-min){
&:nth-child(4n + 1) {
clear: left;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment