"grid"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html lang='en' class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/drus/pen/MwEZVe?depth=everything&order=popularity&page=3&q=grid&show_forks=false" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script> <style class="cp-pen-styles">/* GRID SYSTEM */ @import 'https://fonts.googleapis.com/css?family=Montserrat:700'; .module { float: left; width: 98%; margin-left: 2%; margin-bottom: 2%; background-color: #212121; padding: 1em; min-height: 60px; transition: all 0.3s linear; } .grid { margin-left: -2%; padding: 2%; *zoom: 1; } .grid:after { content: ''; display: block; clear: both; } @media only screen and (min-width: 481px) { .tablet-1 { width: 6.33333333%; } .tablet-1:after { content: ' (8%)'; color: #666; } .tablet-2 { width: 14.66666667%; } .tablet-2:after { content: ' (17%)'; color: #666; } .tablet-3 { width: 23%; } .tablet-3:after { content: ' (25%)'; color: #666; } .tablet-4 { width: 31.33333333%; } .tablet-4:after { content: ' (33%)'; color: #666; } .tablet-5 { width: 39.66666667%; } .tablet-5:after { content: ' (42%)'; color: #666; } .tablet-6 { width: 48%; } .tablet-6:after { content: ' (50%)'; color: #666; } .tablet-7 { width: 56.33333333%; } .tablet-7:after { content: ' (58%)'; color: #666; } .tablet-8 { width: 64.66666667%; } .tablet-8:after { content: ' (67%)'; color: #666; } .tablet-9 { width: 73%; } .tablet-9:after { content: ' (75%)'; color: #666; } .tablet-10 { width: 81.33333333%; } .tablet-10:after { content: ' (83%)'; color: #666; } .tablet-11 { width: 89.66666667%; } .tablet-11:after { content: ' (92%)'; color: #666; } .tablet-12 { width: 98%; } .tablet-12:after { content: ' (100%)'; color: #666; } } @media only screen and (min-width: 1024px) { .desktop-1 { width: 6.33333333%; } .desktop-1:after { content: ' (8%)'; color: #666; } .desktop-2 { width: 14.66666667%; } .desktop-2:after { content: ' (17%)'; color: #666; } .desktop-3 { width: 23%; } .desktop-3:after { content: ' (25%)'; color: #666; } .desktop-4 { width: 31.33333333%; } .desktop-4:after { content: ' (33%)'; color: #666; } .desktop-5 { width: 39.66666667%; } .desktop-5:after { content: ' (42%)'; color: #666; } .desktop-6 { width: 48%; } .desktop-6:after { content: ' (50%)'; color: #666; } .desktop-7 { width: 56.33333333%; } .desktop-7:after { content: ' (58%)'; color: #666; } .desktop-8 { width: 64.66666667%; } .desktop-8:after { content: ' (67%)'; color: #666; } .desktop-9 { width: 73%; } .desktop-9:after { content: ' (75%)'; color: #666; } .desktop-10 { width: 81.33333333%; } .desktop-10:after { content: ' (83%)'; color: #666; } .desktop-11 { width: 89.66666667%; } .desktop-11:after { content: ' (92%)'; color: #666; } .desktop-12 { width: 98%; } .desktop-12:after { content: ' (100%)'; color: #666; } } /* Boring stuff */ * { margin: 0; padding: 0; border: 0px none; box-sizing: border-box; } html { font-size: 62.5%; background-color: #333; color: white; } body { font: 300 14px/1.4 'Montserrat'; } header { text-align: center; margin-bottom: 1em; } header h1 { text-transform: uppercase; font-size: 2.5em; } footer { text-align: center; } .cf { *zoom: 1; } .cf:after { content: ''; display: block; clear: both; } </style></head><body> <header> <h1>% Grid system %</h1> <p>(resize to have fun)</p> </header> <div class="grid"> <article class="module desktop-3 tablet-4">1</article> <article class="module desktop-3 tablet-4">2</article> <article class="module desktop-3 tablet-4">3</article> <article class="module desktop-3 tablet-6">4</article> <article class="module desktop-4 tablet-6">5</article> <article class="module desktop-4 tablet-12">6</article> <article class="module desktop-4 tablet-6">7</article> <article class="module desktop-6 tablet-6">8</article> <article class="module desktop-6 tablet-12">9</article> <article class="module desktop-2 tablet-4">10</article> <article class="module desktop-2 tablet-4">11</article> <article class="module desktop-2 tablet-4">12</article> <article class="module desktop-2 tablet-4">13</article> <article class="module desktop-2 tablet-4">14</article> <article class="module desktop-2 tablet-4">15</article> </div> <footer>- drus -</footer> <hr /> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >// Nothing to watch here :) //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: