Created
May 14, 2015 21:36
-
-
Save designerzen/e5470542e693604648f8 to your computer and use it in GitHub Desktop.
Responsive Columns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
article{ | |
-moz-column-count: 1; | |
-webkit-column-count: 1; | |
column-count: 1; | |
-moz-column-rule: 1px solid #c4c8cc; | |
-webkit-column-rule: 1px solid #c4c8cc; | |
column-rule: 1px solid #c4c8cc; | |
-moz-column-gap: 12px; | |
-webkit-column-gap: 12px; | |
column-gap: 12px; | |
} | |
@media only screen and (min-width:640px) and (max-width:960px) { | |
article{ | |
-moz-column-count: 2; | |
-webkit-column-count: 2; | |
column-count: 2; | |
-moz-column-gap: 9px; | |
-webkit-column-gap: 9px; | |
column-gap: 9px; | |
} | |
} | |
@media only screen and (min-width:960px) { | |
article{ | |
-moz-column-count: 3; | |
-webkit-column-count: 3; | |
column-count: 3; | |
-moz-column-gap: 12px; | |
-webkit-column-gap: 12px; | |
column-gap: 12px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment