Created
June 25, 2012 17:55
-
-
Save CrowderSoup/2990202 to your computer and use it in GitHub Desktop.
Basic 3-col CSS Grid
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
| /** | |
| * This is the most simple 3-col CSS grid I could imagine. It supports 3 columns of equal size with 10px margins. Feel free to modify this as | |
| * you need. | |
| */ | |
| /** | |
| * The row | |
| */ | |
| .row { clear: both; overflow: hidden; margin: 0 0 10px 0; } | |
| /** | |
| * The column | |
| */ | |
| .col { float: left; width: 31%; margin: 10px 10px 10px 10px; } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Basic 3-Col CSS Grid</title> | |
| <link rel="3colgrid.css" /> | |
| </head> | |
| <body> | |
| <div class="row"> | |
| <div class="col">Col 1</div> | |
| <div class="col">Col 2</div> | |
| <div class="col">Col 3</div> | |
| </div> | |
| <div class="row"> | |
| <div class="col">Col 4</div> | |
| <div class="col">Col 5</div> | |
| <div class="col">Col 6</div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment