Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
  <div class="row">
    <!--<div class="left">
      Left
    </div>-->
    <div class="center">
      <h1>Display table, two column layout</h1>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus neque quasi cum illum repellendus quas veniam et quod velit voluptatem. Explicabo aut totam corrupti omnis at vitae possimus odio rem.</p>
      <p>Iste aliquid voluptatum vel rem sunt quo soluta fugit architecto vero obcaecati quis illum molestias reiciendis maxime eveniet. Debitis quibusdam magni explicabo aut labore temporibus magnam quam dolorem dolor est.</p>
      <p>Quos beatae excepturi explicabo cumque reprehenderit optio nesciunt alias iusto molestiae ea porro natus earum eligendi veritatis vitae veniam voluptatibus eum rem ullam repudiandae sint soluta aut dolor sit voluptas.</p>
      <p>Quo dolores minima voluptatum labore reiciendis modi dignissimos itaque dolorem recusandae excepturi sit error officiis repellat laborum ex nihil quis necessitatibus voluptates ratione et id earum minus quasi eveniet nobis.</p>
      <p>Doloribus repellendus explicabo similique tempore maxime magni nostrum dicta ipsum optio dignissimos at porro suscipit ea odio iste doloremque nemo. Consectetur iste laborum quod facere nobis possimus reiciendis beatae veniam.</p>
    </div>
    <div class="right">
      <ul>
        <li>Lorem.</li>
        <li>Deleniti!</li>
        <li>Mollitia.</li>
        <li>Nostrum?</li>
        <li>Laudantium?</li>
        <li>Vitae.</li>
        <li>Voluptates.</li>
      </ul>
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import "compass/css3";

.container {
  display: table; // Needed
  width: 100%; // Needed
  height: 100%; // Needed
}
.row {
  display: table-row; // Needed
}
.left,
.right,
.center {
  display: table-cell; // Needed
  padding: 20px;
}
.left,
.right {
  width: 160px;
  background: Aquamarine;
}
.center {
  background: Pink;
  border-right: solid 20px white;
}




// Reset / Styling
html,
body {
  height: 100%;
}
body {
  padding: 20px;
  box-sizing: border-box;
}
h1 {
  margin: 0 0 20px 0;
  padding: 0;
  line-height: 1;
}
p {
  margin: 0 0 20px 0;
}
ul {
  padding: 0 0 0 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console