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="dialog">
    <p>Пример рисованной рамки для онлайн-игры, для прозрачного фона (<a href="">отсюда</a>).</p>
    <p>При наведении можно посмотреть, как выглядел бы блок без поддержки border-image</p>


                .dialog {
    font: 1em/1.5 sans-serif;
    color: #fff;
    width: 50%;
    min-height: 160px;
    min-width: 220px;
    margin: 50px auto;
    padding: 30px;  
    background: #1b2f4a;
    background-clip: padding-box;
    border: 6px double #860;
    border-image-source: url(;
    border-image-slice: 120 100 140 fill;
    border-image-repeat: repeat stretch;    
    border-image-width: 120px 100px 140px; /* можно просто auto, эффект будет тот же */
    border-image-outset: 36px 30px 58px 28px;
    или сокращенно:
    border-image: url( 120 100 140 fill / auto / 36px 30px 58px 28px repeat stretch
    border-radius: 44px;
.dialog:hover {
    border-image: none;
a { color: #ff6; }

html {
  min-height: 100vh;
  background: repeating-linear-gradient(-60deg,#eee 0 20px,#fff 0 40px)