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.


                <h1>The Box Model, Box-sizing & Box-shadow</h1>

<div class="box-model-wrap">
  <p>le box model</p>
  <div class="box-model"></div>
    <span class="content">Content</span>
    <span class="padding">Padding</span>
    <span class="border">Border</span>
    <span class="margin">Margin</span>

<div class="no-border">
  <p>no border on these boxes</p>
  <div class="container">
      <div class="box"></div>
      <div class="box"></div>
      <div class="box"></div>

<div class="one-border">
  <p>1px border on these boxes</p>
  <div class="container">
      <div class="box"></div>
      <div class="box"></div>
      <div class="box"></div>

<div class="lesson-border">
  <p>f the police</p>
  <div class="container">
      <div class="box"></div>
      <div class="box"></div>
      <div class="box"></div>


                @import bourbon

@import url(

  padding: 50px
  font-family: monospace

  font-size: 60px
  text-align: center
  margin-bottom: 50px
  font-family: 'Amatic SC', monospace

  border: 0
  border-top: 1px dashed #ccc
  width: 40%
  padding-bottom: 50px
  text-align: center
  margin-top: 50px
  margin: 60px auto
  background: rgba(0, 255, 0, 0.19)
  border: 4px black solid
  box-shadow: 0px 0px 0px 20px lightblue inset, 0px 0px 0px 20px lightcoral

  margin-bottom: 50px
    margin-right: 15px

      content: ''
      display: inline-block
      border-radius: 50%
      background: #ccc
      margin-right: 3px
      vertical-align: bottom

      background: rgba(0, 255, 0, 0.19)
      background: lightblue
      background: black
      background: lightcoral

  border: 2px solid #999
  width: 600px
  margin: 50px auto
  +size(180px 100px)
  background: #cccccc
  margin: 10px
  float: left

// - - - - - - - - - - - - - - - - - - - - 
// Lesson Stuff

  display: none

.one-border .box
  border: 1px solid black
.lesson-border .box
  outline: 1px solid black