Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active April 5, 2017 14:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/4198285 to your computer and use it in GitHub Desktop.
Save billerickson/4198285 to your computer and use it in GitHub Desktop.
Column Classes
/* Column Classes
------------------------------------------------------------ */
.five-sixths,
.four-fifths,
.four-sixths,
.one-fifth,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
.three-fifths,
.three-fourths,
.three-sixths,
.two-fifths,
.two-fourths,
.two-sixths,
.two-thirds {
float: left;
margin: 0 0 20px 3%;
}
.one-half,
.three-sixths,
.two-fourths {
width: 48%;
}
.one-third,
.two-sixths {
width: 31%;
}
.four-sixths,
.two-thirds {
width: 65%;
}
.one-fourth {
width: 22.5%;
}
.three-fourths {
width: 73.5%;
}
.one-fifth {
width: 17.4%;
}
.two-fifths {
width: 37.8%;
}
.three-fifths {
width: 58.2%;
}
.four-fifths {
width: 78.6%;
}
.one-sixth {
width: 14%;
}
.five-sixths {
width: 82%;
}
.first {
clear: both;
margin-left: 0;
}
@vynnus
Copy link

vynnus commented Sep 15, 2016

I'm used to bootstrap where I can show diferent amount of columns on mobile and desktop.
Like six columns in a row for desktop and 2 columns for mobile.
Is this possible with column classes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment