Skip to content

Instantly share code, notes, and snippets.

@mathiash98
Created June 14, 2017 13:44
Show Gist options
  • Save mathiash98/8c924fd950f6d1766c26e053eb75004d to your computer and use it in GitHub Desktop.
Save mathiash98/8c924fd950f6d1766c26e053eb75004d to your computer and use it in GitHub Desktop.
Squares inside variable bootstrap colum
.square {
width: 100%;
}
.square:after {
content: "";
display: block;
padding-bottom: 100%;
}
/*=========== apply to parent element source: https://spin.atomicobject.com/2015/07/14/css-responsive-square/ ============*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment