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.


                <h1>Liquid layout</h1>
  <p>Instead of using fixed widths for your layouts you could make a flexible layout using percentages for your column widths. This will work in more situations than a fixed-width layout that only looks right at one specific size. These were called liquid layouts.</p>
  <p>But while a liquid layout will look good across a wide range of widths, it will begin to worsen at the extremes. On a wide screen the layout will look like it’s been stretched out too far. On a narrow screen the layout will look like it’s been squashed. Both scenarios feel uncomfortable.</p>
  <p>You can mitigate these problems by using <code>min-width</code> and <code>max-width</code> for your layout. But then at any sizes below the minimum width or above the maximum width, you’ve got the same issues you’d have with a fixed-width layout. On a wide screen there’d be unused space going to waste. On a narrow screen, the user would have to move the whole page left and right in order to see everything.</p> 
  <p>The word “liquid” is just one of the terms used to describe this kind of layout. These kinds of designs were also called fluid layouts or flexible layouts. The terminology was as fluid as the technique.</p>
  <p>This example is using the CSS <code>float</code> property to create columns. That was a popular technique before CSS grid or flexbox existed.</p>


                body {
  font-family: sans-serif;
  line-height: 1.5;
  padding: 0 16px;

article {
  width: 66%;
  float: left;

aside {
  width: 33%;
  float: right;

h1 {
  margin-bottom: 0;