cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="row">
	<div class="box full"><p>full</p></div>
</div>

<div class="row">
	<div class="box wider"><p>wider</p></div>
	<div class="box quarter"><p>quarter</p></div>
</div>

<div class="row">
	<div class="box wide"><p>wide</p></div>
	<div class="box narrow"><p>narrow</p></div>
</div>

<div class="row">
	<div class="box half"><p>half</p></div>
	<div class="box half"><p>half</p></div>
</div>

<div class="row">
	<div class="box narrow"><p>narrow</p></div>
	<div class="box narrow"><p>narrow</p></div>
	<div class="box narrow"><p>narrow</p></div>
</div>

<div class="row">
	<div class="box quarter"><p>quarter</p></div>
	<div class="box quarter"><p>quarter</p></div>
	<div class="box quarter"><p>quarter</p></div>
	<div class="box quarter"><p>quarter</p></div>
</div>

<div class="row">
	<div class="box sixth"><p>sixth</p></div>
	<div class="box sixth"><p>sixth</p></div>
	<div class="box sixth"><p>sixth</p></div>
	<div class="box sixth"><p>sixth</p></div>
	<div class="box sixth"><p>sixth</p></div>
	<div class="box sixth"><p>sixth</p></div>
</div>

<div class="row" style="color:#555; font-size:30px">
	<div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div>
	<div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div>
	<div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div><div class="box base"><p class="lite">base</p></div>
</div>

<div class="row">
	<div class="box full"><p>full</p></div>
</div>

<div class="row">
	<div class="box half"><p>half</p></div>
	<div class="box narrow"><p>narrow</p></div>
	<div class="box sixth"><p>sixth</p></div>
</div>

<div class="row">
	<div class="box half"><p>half</p></div>
	<div class="box quarter"><p>quarter</p></div>
	<div class="box quarter"><p>quarter</p></div>
</div>

<div class="row">
	<div class="box half"><p>half</p></div>
	<div class="box sixth"><p>sixth</p></div>
	<div class="box sixth"><p>sixth</p></div>
	<div class="box sixth"><p>sixth</p></div>
</div>

<div class="row">
	<div class="box five"><p>five</p></div>
	<div class="box seven"><p>seven</p></div>
</div>

<div class="row">
	<div class="box full"><p>full</p></div>
</div>

<div class="row">
	<div class="box wide"><p>wide</p>
		<div class="row">
			<div class="box narrow"><p>narrow</p></div>
			<div class="box narrow"><p>narrow</p></div>
		</div>
	</div>

	<div class="box narrow"><p class="tall">narrow</p></div>
</div>

<div class="row">
	<div class="box full"><p>full</p></div>
</div>

<div class="row">
	<div class="box wide"><p>wide</p>
		<div class="row">
			<div class="box narrow"><p class="tall">narrow</p></div>
            <div class="box narrow"><p>narrow</p>
                <div class="row">
                    <div class="box sixth"><p>sixth</p></div>
                    <div class="box sixth"><p>sixth</p></div>
                </div>
            </div>
		</div>
	</div>
	<div class="box narrow"><p class="taller">narrow</p></div>
</div>

<div class="row">
	<div class="box full"><p>full</p></div>
</div>

<div class="row">
	<div class="box wide offset-narrow"><p>wider</p></div>
	</div>

<div class="row">
	<div class="box full"><p>full</p></div>
</div>
            
          
!
            
              /* Quick Grid * quickcssgrid.wordpress.com */
/* mobile by default, 
multi-column starting at 760px breakpoint */
@media only screen and (min-width:760px) {
.row {margin:0 auto;overflow:hidden;}
.box {margin:0 10px;overflow:hidden;float:left;display:inline;}
.box > * {margin:10px /* padding for children */ }
 .row .row {margin-left:-10px}
  
.row {width:780px;} .full {width:760px}
.narrow {width:240px} .quarter {width:175px}
.wide {width:500px} .half {width:370px}

.base {width:45px;} .sixth {width:110px;}
.wider {width:565px;} .ten {width:630px;}
.five {width:305px;} .seven {width:435px;}
.offset-base {margin-left:75px;} .offset-quarter {margin-left:205px;}
.offset-five {margin-left:335px;} .offset-half {margin-left:400px;}
}

/* for 960px row, 60px columns */
@media only screen and (min-width : 960px) {
.row {width:960px;} .full {width:940px}
.narrow {width:300px} .quarter {width:220px}
.wide {width:620px} .half {width:460px}

.base {width:60px;} .sixth {width:140px;}
.wider {width:700px;} .ten {width:780px;}
.five {width:380px;} .seven {width:540px;}
.offset-base {margin-left:90px;} .offset-quarter {margin-left:250px;}
.offset-five {margin-left:410px;} .offset-half {margin-left:490px;}
.offset-narrow {margin-left:330px;} .offset-wide {margin-left:650px;}
.offset-sixth {margin-left:170px;} .offset-wider {margin-left:730px;}
.offset-seven {margin-left:570px;} .offset-eleven {margin-left:990px;}
}

/* for 1200px row, 80px columns */
@media only screen and (min-width : 1200px) {
.row {width:1200px;} .full {width:1180px}
.narrow {width:380px} .quarter {width:280px}
.wide {width:780px} .half {width:580px}

.base {width:80px;} .sixth {width:180px;} /* calc: base+20 x cols - 20 */
.wider {width:880px;} .ten {width:980px;}
.five {width:480px;} .seven {width:680px;}
.offset-base {margin-left:110px;} .offset-quarter {margin-left:310px;} /* calc: base+20 x cols + 30 */
.offset-five {margin-left:510px;} .offset-half {margin-left:610px;}
.offset-seven {margin-left:710px;} .offset-wide {margin-left:810px;}
}
/* --- end grid --- */

/* for demo */
.row {background:#ccc}
.row .row {background:transparent}
.box {
  background:#eee; 
  outline: 1px solid #444; 
  margin-top:10px; margin-bottom:10px 
}
p {font:24px/60px Arial;color:#000;text-align:center}
/* end demo */

.vw-line {text-align:center; margin-bottom:10px}
/* end */
            
          
!
            
              $("<div />", {
  class: 'vw-line',
  html: "Viewport Width: <span id='vw'></span>"
}).prependTo("body");

var vwDisplay = $("#vw");
$(window).on("resize", function() {
  vwDisplay.text($(this).width());
}).resize();
            
          
!
999px
Loading ..................

Console