Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="box">
Bear claw apple pie chocolate bar cheesecake lollipop biscuit croissant caramels dragée. Apple pie fruitcake carrot cake jelly-o bonbon brownie jelly. Biscuit carrot cake icing pudding ice cream candy soufflé. Shortbread cotton candy donut powder gingerbread tootsie roll marshmallow macaroon. Lemon drops tart tootsie roll brownie tootsie roll tart tootsie roll. Pastry cake chocolate cake croissant marzipan pastry sweet roll wafer. Pie cheesecake
</div>
              
            
!

CSS

              
                .box {
  --s:20px; /* control the size */
  
  max-width: 600px;
  margin:50px auto;
  padding:calc(var(--s) + 10px);
  box-sizing: border-box;
  background:linear-gradient(45deg,pink,lightblue);
  --g:#000 90deg,#0000 0;
  -webkit-mask:
    conic-gradient(from 135deg  at top   ,var(--g)) 0 0   /calc(2*var(--s)) var(--s) space no-repeat,
    conic-gradient(from -45deg  at bottom,var(--g)) 0 100%/calc(2*var(--s)) var(--s) space no-repeat,
    conic-gradient(from  45deg  at left  ,var(--g)) 0 0   /var(--s) calc(2*var(--s)) no-repeat space,
    conic-gradient(from -135deg at right ,var(--g)) 100% 0/var(--s) calc(2*var(--s)) no-repeat space,
    linear-gradient(#000 0 0) center/calc(100% - 2*var(--s)) calc(100% - 2*var(--s)) no-repeat;
          mask:
    conic-gradient(from 135deg  at top   ,var(--g)) 0 0   /calc(2*var(--s)) var(--s) space no-repeat,
    conic-gradient(from -45deg  at bottom,var(--g)) 0 100%/calc(2*var(--s)) var(--s) space no-repeat,
    conic-gradient(from  45deg  at left  ,var(--g)) 0 0   /var(--s) calc(2*var(--s)) no-repeat space,
    conic-gradient(from -135deg at right ,var(--g)) 100% 0/var(--s) calc(2*var(--s)) no-repeat space,
    linear-gradient(#000 0 0) center/calc(100% - 2*var(--s)) calc(100% - 2*var(--s)) no-repeat;
  resize:horizontal;
  overflow:hidden;
}
              
            
!

JS

              
                
              
            
!
999px

Console