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.


                <div class="box box1">
  <p>Box 1</p>
<div class="box box2">
  <p>Box 2 </p>
  <div class="box box3">
    <p>Box 3</p>
  <p><br>position: fixed;<br>
  bottom: 5px;<br>
  right: 5px; </p>
<div class="box box4">
  <p>Box 4</p>
<div class="text"><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A molestiae suscipit, autem quibusdam nam libero earum tempora sequi veniam debitis, culpa neque. Laudantium laboriosam dolorum repellendus deserunt autem dolor incidunt. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis consectetur vero exercitationem, alias accusamus similique nisi possimus eum eos soluta numquam, laborum modi dolore in rem, odio, animi pariatur sapiente.</p></div>



                p { color: white; margin: 0; padding:0; }
.text {
  width: 100px;
    color: black;
.box1 {  
  background-color: #8bc34a;
  width: 80px;
  height: 80px;
.box2 { 
  height: 150px;
  width: 200px;
  background-color: #ff5722;
  position: fixed;
  bottom: 5px;
  right: 5px;
.box3 { 
  background-color: #9e9e9e;
  width: 50px;
  height: 50px;
.box4 {  
  background-color: #00bcd4;
  width: 80px;
  height: 80px;