Skip to content

Instantly share code, notes, and snippets.

@matthewpennell
Created July 8, 2013 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewpennell/5951471 to your computer and use it in GitHub Desktop.
Save matthewpennell/5951471 to your computer and use it in GitHub Desktop.
Creating column layouts with CSS3
#content {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 50px;
-moz-column-gap: 50px;
column-gap: 50px;
-webkit-column-rule: 1px solid #ccc;
-moz-column-rule: 1px solid #ccc;
column-rule: 1px solid #ccc;
}
#content h2 {
-webkit-column-span: all;
-moz-column-span: all;
column-span: all;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment