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="page-wrap">

<!-- 50%-50% grid -->
<div class="grid">
  <div class="col col-1-2">
    <h2>Headline</h2>
    <p>Ducimus quidem numquam natus nihil vero magnam amet cum sed repellendus possimus nisi neque deserunt illo fuga excepturi quas aliquam recusandae praesentium reprehenderit tempora doloremque porro assumenda molestias! Quibusdam ea?</p>
  </div>
  <div class="col col-1-2">
    <h2>Headline</h2>
    <p>Ducimus quidem numquam natus nihil vero magnam amet cum sed repellendus possimus nisi neque deserunt illo fuga excepturi quas aliquam recusandae praesentium reprehenderit tempora doloremque porro assumenda molestias! Quibusdam ea?</p>
  </div>
</div>
  
  
<!-- nested grid -->
<div class="grid">
  <div class="col col-1-2">
    <h2>Headline</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolor suscipit dicta aliquam laudantium alias facilis veritatis magnam provident. Earum saepe impedit quas delectus sint assumenda itaque ab officia odit magnam!</p>
    <div class="grid">
      <div class="col col-1-3">
        <h2>Headline</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A vel at id obcaecati quae corporis molestiae similique est atque illo sit asperiores magnam eligendi rem ullam quaerat doloremque autem neque.</p>
      </div>
      <div class="col col-2-3">
        <h2>Headline</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A vel at id obcaecati quae corporis molestiae similique est atque illo sit asperiores magnam eligendi rem ullam quaerat doloremque autem neque.</p>
      </div>
    </div>
  </div>
  <div class="col col-1-2">
    <h2>Headline</h2>
    <p>Omnis temporibus consequatur explicabo illum vitae dolorum obcaecati quod dolor tenetur fugit voluptatibus odio voluptate id maiores a assumenda cum nostrum nisi reprehenderit earum et vero enim esse possimus dolores!</p>
    <p>Omnis temporibus consequatur explicabo illum vitae dolorum obcaecati quod dolor tenetur fugit voluptatibus odio voluptate id maiores a assumenda cum nostrum nisi reprehenderit earum et vero enim esse possimus dolores!Omnis temporibus consequatur explicabo illum vitae dolorum obcaecati quod dolor tenetur fugit voluptatibus odio voluptate id maiores a assumenda cum nostrum nisi reprehenderit earum et vero enim esse possimus dolores! simus dolores!
    </p>
    <p>Omnis temporibus consequatur explicabo illum vitae dolorum obcaecati quod dolor tenetur fugit voluptatibus odio voluptate id maiores a assumenda cum nostrum nisi reprehenderit ea</p>
  </div>
</div>

</div>
            
          
!
            
              @import "compass/css3";

/**
 *  Micro Clearfix by Nicolas Gallagher
 */
.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  *zoom: 1;
}

/**
 * base styles
 */
*, *:after, *:before {
  @include box-sizing(border-box);
}
body {
  background: url('http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/shattered.png') 0 0 repeat;
}
.page-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: url('http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/white_wall2.png') 0 0 repeat;
  padding:20px;
}

/**
 * grid styles
 */
$gutter: 20px;

.grid {
  @extend .clearfix;
  margin-left: -$gutter;
}
.col {
  float: left;
  padding-left: $gutter;
}
.col-1-2 {
  width: 50%;
}
.col-1-3 {
  width: 33.333333333%;
}
.col-2-3 {
  width: 66.666666666%;
}
.col-1-4 {
  width: 25%;
}
.col-3-4 {
  width: 75%;
}
            
          
!
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