123

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <h1>Styling Code Samples</h1>
<p>Each example includes 1em of padding on the pre element. </p>

<br />
<h2>Background Only</h2><pre class="bg-only"><code>brew install phpunit</code></pre>
<br />
<h2>Box Only</h2>
<pre class="box-only"><code>brew install phpunit</code></pre>
<br />
<h2>Border Top & Bottom</h2>
<pre class="border-top-bottom"><code>brew install phpunit</code></pre>
<br />
<h2>Dashed Border Top & Bottom</h2>
<pre class="dashed-border-top-bottom"><code>brew install phpunit</code></pre>
<br />
<h2>Border Top & Bottom with Background</h2>
<pre class="border-top-bottom-bg"><code>brew install phpunit</code></pre>
<br />
<h2>Dashed Border Top & Bottom with Background</h2>
<pre class="dashed-border-top-bottom-bg"><code>brew install phpunit</code></pre>
<br />
<h2>Thick Left Border</h2>
<pre class="thick-left-border"><code>brew install phpunit</code></pre>
<br />
<h2>Thick Right Border with Icon</h2>
<pre class="thick-right-border-icon"><code>brew install phpunit</code></pre>
<br />
<h2>Thick Top Border with Label</h2>
<p>The label in the border is provided by a rel attribute on the pre element.</p>
<pre class="thick-top-border-label" rel="Console"><code>brew install phpunit</code></pre>
            
          
!
            
              pre {
  padding: 1em;
}

.bg-only {
  background-color: #E5E5E5;
}

.box-only {
  border: 1px solid;
}

.border-top-bottom {
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.dashed-border-top-bottom {
  border-top: 1px dashed;
  border-bottom: 1px dashed;
}

.border-top-bottom-bg {
  background-color: #E5E5E5;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.dashed-border-top-bottom-bg {
  background-color: #E5E5E5;
  border-top: 1px dashed;
  border-bottom: 1px dashed;
}

.thick-left-border {
  border-left: 5px solid;
  background-color: #E5E5E5;
}

.thick-right-border-icon {
  border-right:2em solid;
  background-color: #E5E5E5;
  position: relative;
}

.thick-right-border-icon:after {
  content:"</>";
  position: absolute;
  top: 0.5em;
  right: -2em;
  color :#fff;
  font-size: 0.85em;
}

.thick-top-border-label {
  background-color: #E5E5E5;
  position: relative;
  line-height: 1.5
}

.thick-top-border-label:before {
  content:attr(rel);
  position: absolute;
  top: -1.75em;
  left: 0;
  color :#fff;
  font-size: 0.85em;
  background-color: purple;
  width: 100%;
  line-height: 2;
  text-indent: 15px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console