Pen Settings



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


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.


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.


                <!-- This wrapper here is important -->
<section class="article-wrap">
  <article class="article-content">
    <h1>This is a header</h1>
      The content area is fluid width, while the sidebar staying fixed width. No hacks, no bullshit just normal CSS.
    <p>Labore laborum beatae cupiditate necessitatibus laudantium velit quidem commodi quisquam reprehenderit corporis amet dolorem et fuga maxime recusandae. Harum iusto deleniti quo nam magni minus sunt amet iste vel explicabo.</p>
    <p>Deserunt aspernatur iure ad! Earum illum numquam in saepe nostrum reiciendis corrupti tenetur quis repudiandae unde ullam enim atque distinctio maxime ipsum ea velit animi non molestias veniam sed sunt.</p>
    <p>Doloribus maxime repellendus quae omnis consequuntur tenetur quod itaque optio molestiae magnam nemo tempore earum dignissimos vel cupiditate fugit odit asperiores at aperiam labore qui error molestias modi veritatis harum.</p>
    <p>Dolore magni voluptate ullam illum fugit tempora suscipit sed saepe sequi adipisci accusantium in dolorum facere! Sequi iure nemo aliquid praesentium rerum maiores culpa blanditiis est adipisci velit sunt iusto.</p>
<aside class="sidebar">


                @import "compass/css3";

// Variabless
$sidebar-width: 200px;

.article-wrap {
  margin-right: $sidebar-width;
.sidebar {
  background: Aquamarine;
  box-sizing: border-box;
  float: left;
  padding: 20px;
.article-content {
  width: 100%;
.sidebar {
  border-left: 20px solid white;
  width: $sidebar-width;

// Just irrelevant styling
body {
  padding: 20px;
p {
  margin: 0 0 10px 0;
h2 {
  font-size: 20px;
ul {
  padding-left: 20px;