Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <h1><strong>20160213 Version 10.0.3 (12602.4.8, r211751)</strong>. The text-shadow appears to cause the second column to be pushed downwards. Remove the text-shadow and the columns return to expected position.</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolor ut optio ullam debitis ratione, voluptatum iure, dicta harum nisi corporis impedit, dolores excepturi est sit. Dicta ut voluptates, odit quaerat!</p>
<div class="columns">
  <div><strong>Column item 1.</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio magnam velit tenetur enim eveniet temporibus nulla animi id ea, impedit omnis. Odio labore, magni exercitationem. Praesentium quos est illo. Culpa!</div>
  <div><strong>Column item 2.</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam voluptatum, molestiae similique veniam illum excepturi optio quis assumenda autem voluptates necessitatibus cupiditate deserunt quibusdam iusto eum nemo
    porro, ipsa magnam.</div>
  <div><strong>Column item 3.</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid recusandae id velit, voluptate. Minus facere perferendis animi nisi sit atque quia vero voluptatum veniam inventore repudiandae necessitatibus, temporibus
    ab possimus.</div>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente officiis impedit illum dicta vitae itaque natus necessitatibus reprehenderit temporibus rem commodi, iusto, modi ipsam aut omnis cum! Fugiat est, quam!</p>
              
            
!

CSS

              
                body {
  max-width: 30em;
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
}

.columns {
  column-count: 2;
  column-gap: 50px;
  -webkit-column-count: 2;
  -webkit-column-gap: 50px;
  -moz-column-count: 2;
  -moz-column-gap: 50px;
}

.columns div {
  /* 20160213 Safari Version 10.0.3 (12602.4.8, r211751): remove the text shadow and Safari will render columns as desired */
  text-shadow: 0px 0px 30pt blue;
  /* Styles simply for highlighting element layout */
  background: rgba(0, 0, 0, .1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
              
            
!

JS

              
                
              
            
!
999px

Console