Skip to content

Instantly share code, notes, and snippets.

@magemore
Created April 25, 2012 04:57
Show Gist options
  • Save magemore/2486554 to your computer and use it in GitHub Desktop.
Save magemore/2486554 to your computer and use it in GitHub Desktop.
Having multiple columns
#columns-3 {
text-align: justify;
-moz-column-count: 3;
-moz-column-gap: 12px;
-moz-column-rule: 1px solid #c4c8cc;
-webkit-column-count: 3;
-webkit-column-gap: 12px;
-webkit-column-rule: 1px solid #c4c8cc;
}
@magemore
Copy link
Author

This lets you create multiple columns for your content without needing to go through the formatting hassle of creating separate paragraphs or whatnot. Change the number of columns to however many you want. Vertical grey separator lines are included, which you can change the color or remove altogether.

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