octocatstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

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

Want a Run Button?

If active, the preview will update automatically when you change code.

            
              <div class="grid">
  
  <div class="size1of2">
    <section>
      <header>Size 1 of 2</header>
      Lorem ipsum dolor sit amet, jumentum consectetuer ex minim quis luctus rusticus mauris volutpat, pala bene nibh. Praesent ea, facilisi pagus mauris iriure immitto hendrerit damnum meus damnum nulla iustum.
    </section>
  </div>
  
  <div class="size1of2">
    <section>
      <header>Size 1 of 2</header>
      Lorem ipsum dolor sit amet, jumentum consectetuer ex minim quis luctus rusticus mauris volutpat, pala bene nibh. Praesent ea, facilisi pagus mauris iriure immitto hendrerit damnum meus damnum nulla iustum.
    </section>
  </div>
  
  <div class="size2of3">
    <section>
      <header>Size 2 of 3</header>
      Lorem ipsum dolor praesent ea, facilisi pagus mauris iriure immitto hendrerit damnum meus damnum nulla iustum.
    </section>
  </div>
  
  <div class="size1of3">
    <section>
      <header>Size 1 of 3</header>
      Lorem ipsum dolor praesent ea, facilisi pagus mauris iriure immitto hendrerit damnum meus damnum nulla iustum.
    </section>
  </div>
  
  <div class="size1of4">
    <section>
      <header>Size 1 of 4</header>
      Lorem ipsum dolor praesent ea, facilisi pagus mauris iriure immitto hendrerit damnum meus damnum nulla iustum.
    </section>
  </div>
  
  <div class="size1of2">
    <section>
      <header>Size 1 of 2</header>
      Lorem ipsum dolor praesent ea, facilisi pagus mauris iriure immitto hendrerit damnum meus damnum nulla iustum.
    </section>
  </div>
  
  <div class="size1of8">
    <section>
      <header>Size 1 of 8</header>
      Happy
    </section>
  </div>
  
  <div class="size1of8">
    <section>
      <header>Size 1 of 8</header>
      Thoughts!
    </section>
  </div>
  
</div>
            
          
!
            
              /*
-----------Non-Semantic Helper Classes-----------
*/
.borderBox, 
  .grid,
  .grid:after,
  .grid:before,
  .grid [class*='size'],
  .grid [class*='size']:after,
  .grid [class*='size']:before,
  section
{
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/*
-----------Grid Formatting-----------
*/
.grid:after { content: ""; display: table; clear: both; }
.grid .size1of1 { float: none; }
.grid .size1of2 { width: 50%; }
.grid .size1of3 { width: 33.33333%; }
.grid .size2of3 { width: 66.66666%; }
.grid .size1of4 { width: 25%; }
.grid .size3of4 { width: 75%; }
.grid .size1of5 { width: 20%; }
.grid .size2of5 { width: 40%; }
.grid .size3of5 { width: 60%; }
.grid .size4of5 { width: 80%; }
.grid .size1of6 { width: 16.6666666%; }
.grid .size5of6 { width: 83.3333333%; }
.grid .size1of7 { width: 14.2857143%; }
.grid .size2of7 { width: 28.5714286%; }
.grid .size3of7 { width: 42.8571429%; }
.grid .size4of7 { width: 57.1428572%; }
.grid .size5of7 { width: 71.4285715%; }
.grid .size6of7 { width: 85.7142858%; }
.grid .size1of8 { width: 12.5%; }
.grid .size3of8 { width: 37.5%; }
.grid .size5of8 { width: 62.5%; }
.grid .size7of8 { width: 87.5%; }
.grid [class*='size'] { float: left; }

/*
-----------Gutter Formatting-----------
*/
.grid { margin-left: -30px; }
.grid [class*='size'] { padding: 0 0 30px 30px; }

/*
-----------Design Styles-----------
*/
body { margin: 25px 20px; font: 13px/18px Arial, Helvetica, sans-serif; }
section, section > header { border: 1px solid #cdcdcd; }
section {
  display: inline-block;
  width: 100%;
  -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;
  background: #f5f5f5;
	-webkit-box-shadow: 0 2px 2px -2px #ccc;
  -moz-box-shadow: 0 2px 2px -2px #ccc;
  box-shadow: 0 2px 2px -2px #ccc;
  padding: 15px;
}
section > header {
  margin: -15px -15px 15px -15px;
	border-width: 0 0 1px;
  -webkit-border-radius: 2px 2px 0 0;
  -moz-border-radius: 2px 2px 0 0;
  border-radius: 2px 2px 0 0;
	-webkit-box-shadow: 0 1px 0 #fff;
  -moz-box-shadow: 0 1px 0 #fff;
  box-shadow: 0 1px 0 #fff;
  padding: 10px 14px 9px;
	background: #e9e9e9;
	background: -moz-linear-gradient(top,
    rgba(245, 245, 245, .7) 0%,
    rgba(227, 227, 227, .7) 100%
    );
	background: -webkit-gradient(linear, left top, left bottom,
    color-stop(0%, rgba(245, 245, 245, .7)),
    color-stop(100%, rgba(227, 227, 227, .7))
    );
	background: -webkit-linear-gradient(top,
    rgba(245, 245, 245, .7) 0%,
    rgba(227, 227, 227, .7) 100%
    );
	background: -o-linear-gradient(top,
    rgba(245, 245, 245, .7) 0%,
    rgba(227, 227, 227, .7) 100%
    );
	background: -ms-linear-gradient(top,
    rgba(245, 245, 245, .7) 0%,
    rgba(227, 227, 227, .7) 100%
    );
	background: linear-gradient(top,
    rgba(245, 245, 245, .7) 0%,
    rgba(227, 227, 227, .7) 100%
    );
	font-weight: bold;
	-webkit-text-shadow: 0 1px #fff; text-shadow: 0 1px #fff;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console