Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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.


Auto Save

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="example" contenteditable>
  <p>Some content. Editable!</p>

<div class="example">
  <p>Some longer, much longer content.</p>
  <p>Even multi-paragraph.</p>
  <p>You can have various corner shapes (not only proposed in CSS Backgrounds and Borders Level 4) with the same-shape shadow in nearly all browsers, including IE11, today without any script!</p>

<p>Here is the SVG used</p>
<svg width="100" height="100" viewBox="0 0 100 100" xmlns="" xmlns:xlink="">
    <filter id="blurMe">
    <feGaussianBlur in="SourceGraphic" stdDeviation="3" />
    <symbol id="card" viewBox="0 0 80 80" width="80" height="80">
      <path d="M10,0h60c7,1+9,3+10,10v60h-10v10h-60a10,10+0,00-10-10v-60Z"/>
  <use xlink:href="#card" style="fill:#000; opacity: 0.4; filter:url(#blurMe);" x="10" y="15" width="80" height="80"/>
  <use xlink:href="#card" style="fill:#ffc" x="10" y="10" width="80" height="80"/>



                body {
  min-height: 100vh;
  margin: 0 20px;
  background: repeating-linear-gradient(-60deg, #888 0 20px, #999 0 40px);

.example {
  float: left;
  width: 300px;
  margin: 30px  10px;
  padding: 10px;
  border: 1px solid transparent; /* нужен для работы в Edge, ну и как фолбэк сгодится */
  border-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='' xmlns:xlink=''%3E%3Cdefs%3E%3Cfilter id='blurMe'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='3' /%3E%3C/filter%3E%3Csymbol id='card' viewBox='0 0 80 80' width='80' height='80'%3E%3Cpath d='M10,0h60c7,1+9,3+10,10v60h-10v10h-60a10,10+0,00-10-10v-60Z'/%3E%3C/symbol%3E%3C/defs%3E%3Cuse xlink:href='%23card' style='fill:%23000; opacity: 0.4; filter:url(%23blurMe);' x='10' y='15' width='80' height='80'/%3E%3Cuse xlink:href='%23card' style='fill:%23ffc' x='10' y='10' width='80' height='80'/%3E%3C/svg%3E%0A") 20 fill / 20px / 10px stretch;

.example:hover {
  border-image: none;
  background: #ffc;
  border-radius: 10px;
  box-shadow: 0 5px 5px rgba(0,0,0,0.4);

p {
  clear: left;

:focus-visible {
  outline: none;