Pen Settings

via HTML Inspector

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.


              <div id="container">
  <div id="sidebar">
    <p>This is the sidebar.</p>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin eu velit quis metus imperdiet euismod. Nam varius iaculis odio at auctor. Sed erat ipsum, dictum sit amet semper vel, dignissim sed urna. Sed non risus nulla. Suspendisse varius neque nec felis tempus consectetur. Morbi tempor, nunc vel sollicitudin adipiscing, leo urna eleifend purus, sed adipiscing massa nulla eu purus. Pellentesque in purus tortor. Pellentesque in nisl in nisi viverra bibendum. Proin consectetur mauris a enim pharetra ornare. Curabitur nec enim arcu, vel pellentesque purus. Quisque sit amet est tellus. Etiam elementum lacinia elementum. Nullam est urna, viverra lobortis venenatis eu, sagittis sed diam. Praesent hendrerit urna sed lectus elementum rutrum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed hendrerit tristique rhoncus.</p>
  <div id="content">
    <h1>Main Content</h1>
    <p>This is the flexible main content area.</p>
  <div id="footer">
    <p>Footer stuff here.</p>


              #container {
  background: #b00b00;
  border-left: 300px solid #bada55;

#sidebar {
  float: left;
  width: 280px;
  padding: 10px;
  margin-left: -300px;

#content {
  padding: 10px;

#footer {
  clear: both;
  background: #333;
  margin-left: -300px;
  padding: 10px;



Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................