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="page">
  <header>
    <h1>HEADER - HEADER</h1>
  </header>
  <div class="content">
    <div class="content-row">
    <main>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Praesentium molestias nulla neque omnis eaque ad perspiciatis cum mollitia excepturi sit. Amet, totam velit fugiat sunt voluptatum incidunt reprehenderit earum animi.</p>
      <p>Sit excepturi natus velit laborum adipisci deserunt quasi veniam, pariatur non aspernatur fuga beatae dolorum cupiditate commodi maxime, id eligendi laboriosam molestiae iusto dignissimos ea et error assumenda architecto! Eos.</p>
      <p>Perferendis animi totam, vel at reprehenderit veniam assumenda consequuntur perspiciatis similique. Eum repellat minus sed dolorem molestias, aperiam debitis hic! Quis obcaecati delectus iusto amet atque veritatis incidunt aspernatur temporibus.</p>
      <p>Pariatur id ut obcaecati expedita, impedit ipsa error repudiandae fuga harum, saepe ratione perspiciatis recusandae! Hic numquam, beatae fuga laborum id illum voluptates voluptatibus ex deleniti mollitia nesciunt temporibus consequatur.</p>
    </main>
    <aside>
      SIDEBAR
      <br>
      SIDEBAR
    </aside>
    </div>
  </div>

  <footer>
    <h2>FOOTER - FOOTER</h2>
  </footer>
</div>
              
            
!

CSS

              
                /* Декоративные стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.page {
  width: 900px;
  margin: 0 auto;
  border: 2px dotted black;
}
header {
  padding: 10px;
  background: black;
  color: white;
  text-align: center;
}
.content-row {
  display: flex;
}
main {
  background: #eee;
  padding: 10px;
}
aside {
  background: #ddd;
  padding: 10px;
}
footer{
  background: #ffa;
  text-align: center;
}

/* Табличная верстка */
html, body {
  height: 100%;
}
.page {
  display: table;
  height: 100%;
}

header,
.content,
footer {
  display: table-row;
}

header, footer {
  height: 1px;
}
              
            
!

JS

              
                
              
            
!
999px

Console