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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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="col col-1">
    <h2>Lorem Ipsum</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Tellus mauris a diam maecenas sed enim ut sem. Morbi enim nunc faucibus a. Nibh sit amet commodo nulla facilisi nullam. Volutpat consequat mauris nunc congue nisi.</p>
  </div>
  <div class="col col-2">
    <h2>sollicitudin tempor id</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Porta lorem mollis aliquam ut. Malesuada fames ac turpis egestas. Nibh tortor id aliquet lectus proin nibh nisl condimentum. Lectus vestibulum mattis ullamcorper velit sed ullamcorper. Sed elementum tempus egestas sed sed. Ornare quam viverra orci sagittis eu volutpat odio facilisis mauris. Nibh ipsum consequat nisl vel pretium. Magnis dis parturient montes nascetur. Massa vitae tortor condimentum lacinia quis. Ultricies mi eget mauris pharetra et ultrices neque ornare aenean. Etiam dignissim diam quis enim lobortis scelerisque fermentum.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel fringilla est ullamcorper eget nulla facilisi etiam dignissim diam. Sed viverra ipsum nunc aliquet bibendum enim facilisis gravida. Pellentesque massa placerat duis ultricies lacus sed turpis tincidunt id. Potenti nullam ac tortor vitae purus faucibus ornare. Elit sed vulputate mi sit amet mauris.</p>
  </div>
  <div class="col col-3">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. In egestas erat imperdiet sed euismod nisi. Eget nullam non nisi est sit amet facilisis. Mus mauris vitae ultricies leo.</p>
  </div>
</div>
              
            
!

CSS

              
                h2 {
  color: red;
  font-size: 2rem;
}

.container {
  margin: 0 auto;
}

.col {
  margin: 0.5em;
  padding: 0 1em;
}

.col-1,
.col-3 {
  width: 20%;
}

.col-1 {
  box-shadow: 2px 2px 5px red;
}

.col-2 {
  background-color: skyblue;
  width: 45%;
}

.col-3 {
  border: 2px solid black;
}

@media (min-width: 640px) and (orientation: landscape) {
  h2 {
    color: blue;
    font-size: 2.5rem;
  }

  .container {
    display: flex;
    justify-content: space-between;
  }

  .col-2 {
    background: yellow;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console