Created
June 22, 2014 00:32
-
-
Save soderalohastrom/f2d3ea7a6467f3d1c6b7 to your computer and use it in GitHub Desktop.
Multi-columns - a very new set of properties which allow for multicolumn creation within an element
This file contains 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
@media all and (min-width: 900px) { | |
#example p { | |
-webkit-column-count: 3; | |
-webkit-column-gap: 1%; /* Saf3, Chrome*/ | |
-moz-column-count: 3; | |
-moz-column-gap: 1%; /* FF3.5+ */ | |
column-count: 3; | |
column-gap: 1%; /* Opera 11+*/ | |
} | |
} | |
@media all and (max-width: 900px) and (min-width: 600px) { | |
#example p { | |
-webkit-column-count: 2; /* Saf3, Chrome*/ | |
-webkit-column-gap: 4%; /* Saf3, Chrome*/ | |
-moz-column-count: 2; /* FF3.5+ */ | |
-moz-column-gap: 4%; /* FF3.5+ */ | |
column-count: 2; /* Opera 11+*/ | |
column-gap: 4%; /* Opera 11+*/ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment