Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


                <h2>Multi-column Layout with Media Queries</h2>
<div class="multi-column count long-columns">

  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed molestie eros faucibus mauris finibus, eu tincidunt eros faucibus. Fusce sollicitudin scelerisque fringilla. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam posuere aliquam
    lorem sit amet viverra. Cras faucibus mauris ac metus dignissim accumsan. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque cursus arcu sit amet vulputate ornare. Curabitur gravida nisl at velit efficitur,
    ut pellentesque urna accumsan. Cras tincidunt ac leo sed accumsan. Etiam a neque justo.</p>

  <p>Sed lobortis eu urna eget euismod. In scelerisque tincidunt ex, non accumsan nisi tristique eu. Morbi rutrum nibh lorem, pharetra pellentesque massa laoreet elementum. Pellentesque sed dictum urna, nec imperdiet tortor. Donec vitae leo nec eros porttitor
    condimentum. Aenean porttitor lobortis felis in pharetra. Aenean consectetur, enim sit amet ullamcorper tincidunt, libero nisl luctus metus, quis condimentum lorem magna non tellus. Phasellus faucibus lorem velit, quis interdum ex dignissim vitae.
    Nullam ex justo, condimentum sed massa vel, faucibus aliquet sapien. Maecenas lacinia velit quis fermentum faucibus. Ut pharetra massa ut consequat lobortis. Quisque lobortis bibendum velit, et facilisis diam. Curabitur nec leo efficitur magna vehicula
    ultrices. Quisque laoreet vulputate tortor, eu consectetur quam ultricies non.



                body {
  padding: 0 30px;

h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2em;
  margin-bottom: 0;
  margin-top: 50px;

.multi-column > p:first-child {
  margin-top: 0;

.multi-column {
  font-family: 'Raleway';
  line-height: 1.5em;
  font-size: 0.9em;
  text-align: justify;
  padding: 2rem 0;

@media (min-width: 800px) {
  .multi-column.long-columns {
    columns: 3 200px;