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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <header>
  <h1>Simple 2 Column, Responsive Layout - Without Absolute Positioning</h1>
</header>
<div class="row">
  <div class="wide column">
    <p>Morbi tempus lacus id risus venenatis, et luctus nunc pretium. Aliquam sit amet est non urna vestibulum pharetra quis ut neque. Donec feugiat porta ipsum, vel euismod velit suscipit in. Aenean consectetur ligula turpis, sed laoreet ligula viverra luctus. Etiam lobortis faucibus dictum. In pellentesque molestie nunc, bibendum vehicula nibh posuere et. Suspendisse auctor leo vel libero pulvinar, id dignissim est lacinia. Aenean mollis tempor dui nec laoreet.</p>
    <p>Cras pellentesque nec mauris vitae tempus. Sed mauris enim, hendrerit sed lorem in, vehicula aliquam mi. Maecenas ante nisi, eleifend quis metus a, accumsan posuere urna. Donec id bibendum justo. Morbi hendrerit velit augue, nec auctor felis luctus ut. Nullam fringilla enim in nibh sagittis bibendum. Sed vitae imperdiet nisi. Suspendisse molestie quam condimentum odio egestas congue. Morbi in mi vitae augue iaculis scelerisque ac ut quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum in lorem sed augue malesuada pretium. Nulla in mi lorem. Cras sit amet pharetra sem, a fringilla nisl. Curabitur ut posuere enim. Vivamus sit amet magna luctus, porttitor augue sit amet, consectetur eros. Ut est ante, condimentum id tempus in, gravida consectetur mauris. Mauris at fringilla risus, non ultrices lectus. Cras ut arcu quis nisi tincidunt feugiat lacinia in leo. Donec velit enim, ornare vitae rutrum vel, vulputate sed enim. Donec molestie nisi sit amet metus dapibus, non imperdiet ipsum placerat.</p>
  </div>
  <div class="narrow column">
    <p>Quisque porttitor sapien eu suscipit dictum. Aenean varius nisl in arcu porttitor, quis gravida nunc hendrerit. Phasellus quis justo dictum, porttitor nisl quis, pellentesque nulla. Nam eu rutrum diam. Nunc quis vulputate felis. Nam fringilla lacus nulla, quis sollicitudin erat interdum quis. Ut dignissim vel orci et laoreet. Nulla placerat nisl quis mauris consequat dapibus.</p>
    <p>Nunc dictum nunc vitae augue egestas, vel efficitur nunc accumsan. Nulla eu odio dolor. Maecenas sit amet bibendum dui. Praesent ante tortor, vulputate in felis semper, faucibus lacinia sapien. Sed ac eros massa. Etiam condimentum cursus lacus eleifend dapibus. Pellentesque pulvinar, nulla non blandit sagittis, ante neque molestie sem, nec congue lacus felis nec erat.</p>
  </div>
</div>
<footer>
  <p>Some footer content which neither column will overlay. Some footer content which neither column will overlay. Some footer content which neither column will overlay. Some footer content which neither column will overlay. Some footer content which neither column will overlay.</p>
</footer>
            
          
!
            
              @import "compass/css3/box-sizing";
@import "compass/typography/vertical_rhythm";
  
$base-font-size: 16px;
$base-line-height: 24px;

@include establish-baseline();

*,
*:after,
*:before {
  @include box-sizing();
}
header,
footer {
  text-align: center;
  padding: 0.5em;  
}
h1 {
  @include adjust-font-size-to(1.6em, 1.2)
}
.row {
  margin: 1em 0;
  text-align: center;
}
.column {
  border: 1px solid grey;
  display: inline-block;
  vertical-align: top;
  text-align: left;
  padding: 0 0.5em;
  width: 100%;
}

@media screen and (min-width: 32em ) {
  .column {
    width: 32em;
  }
}

@media screen and (min-width: 52em ) {
  .wide {
    margin-right: 2em;
  }
  .narrow {
    width: 15em;
  }
}

@media screen and (min-width: 72em ) {
  .wide {
    margin-right: 5em;
    width: 37em;
    @include adjust-font-size-to(1.1em, 1.2);    
  }
  .narrow {
    width: 20em;
    @include padding-leader(0.2);
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console