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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

HTML

              
                <svg xmlns="http://www.w3.org/2000/svg" height="0" width="0">
  <filter height="1" width="1" y="0" x="0" id="border-blur">
    <feFlood result="black" />
    <feOffset dx="-40" dy="-40" result="shift1" />
    <feOffset dx="40" dy="40" in="black" result="shift2" />
    <feComposite operator="in" in="shift1" in2="shift2" />
    <!-- flip transparency: now only the border is black,
         the inner area transparent -->
    <feComponentTransfer result="border" width="100%" height="100%" x="0" y="0">
      <feFuncA tableValues="1 0" type="table" />
    </feComponentTransfer>
    <!-- show the image in that area -->
    <feComposite operator="in" in="SourceGraphic" in2="border" />
    <!-- blur it by amount stdDeviation -->
    <feGaussianBlur stdDeviation="8" result="blur" />
    <!-- stack the blurred on top of the un-blurred -->
    <feMerge>
      <feMergeNode in="SourceGraphic" />
      <feMergeNode in="blur" />
      <!-- double better emulates CSS blur -->
      <feMergeNode in="blur" />
    </feMerge-->
  </filter>
</svg>

<div>I'm an element with a blurry border. This is created with a SVG filter that defines a border area where the blurred image is shown on top of the un-blurred image.</div>


              
            
!

CSS

              
                div {
  padding: 50px;
  max-width: 23em;
  color: #fff;
  font: 600 1.5em/ 1.375 segoe script, comic sans ms, cursive;
  text-shadow: 1px 1px #000;
  background: url(https://images.unsplash.com/photo-1544070078-a212eda27b49?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ) 50%/cover border-box padding-box;
  filter: url(#border-blur);
}
              
            
!

JS

              
                
              
            
!
999px

Console