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="block pokeball"></div>

              
            
!

CSS

              
                body {
  margin: 50px;
  padding: 0;
  background-color: lavender;
}

.block {
  width: 20px;
  height: 20px;
}

.pokeball {
  border: none;
  box-shadow: 100px 0 0 black, 120px 0 0 black, 140px 0 0 black, 160px 0 0 black,
    60px 20px 0 black, 80px 20px 0 black, 100px 20px 0 red, 120px 20px 0 red, 140px 20px 0 red, 160px 20px 0 red, 180px 20px 0 black, 200px 20px 0 black,
    40px 40px 0 black, 60px 40px 0 red, 80px 40px 0 red, 100px 40px white, 120px 40px red, 140px 40px 0 red, 160px 40px 0 red, 180px 40px 0 red, 200px 40px 0 red, 220px 40px 0 black,
    40px 60px 0 black, 60px 60px 0 red, 80px 60px 0 white, 100px 60px 0 white, 120px 60px 0 white, 140px 60px 0 red, 160px 60px 0 red, 180px 60px 0 red, 200px 60px 0 red, 220px 60px 0 black,
    20px 80px 0 black, 40px 80px 0 red, 60px 80px 0 red, 80px 80px 0 red, 100px 80px 0 white, 120px 80px 0 red, 140px 80px 0 red, 160px 80px 0 red, 180px 80px 0 red, 200px 80px 0 red, 220px 80px 0 red, 240px 80px 0 black,
    20px 100px 0 black, 40px 100px 0 red, 60px 100px 0 red, 80px 100px 0 red, 100px 100px 0 red, 120px 100px 0 black, 140px 100px 0 black, 160px 100px 0 red, 180px 100px 0 red, 200px 100px 0 red, 220px 100px 0 red, 240px 100px 0 black,
    20px 120px 0 black, 40px 120px 0 black, 60px 120px 0 red, 80px 120px 0 red, 100px 120px 0 black, 120px 120px 0 white, 140px 120px 0 grey, 160px 120px 0 black, 180px 120px 0 red, 200px 120px 0 red, 220px 120px 0 black, 240px 120px 0 black,
    20px 140px 0 black, 40px 140px 0 white, 60px 140px 0 black, 80px 140px 0 black, 100px 140px 0 black, 120px 140px 0 grey, 140px 140px 0 grey, 160px 140px 0 black, 180px 140px 0 black, 200px 140px 0 black, 220px 140px 0 grey, 240px 140px 0 black,
    40px 160px 0 black, 60px 160px 0 white, 80px 160px 0 white, 100px 160px 0 white, 120px 160px 0 black, 140px 160px 0 black, 160px 160px 0 grey, 180px 160px 0 grey, 200px 160px 0 grey, 220px 160px 0 black,
    40px 180px 0 black, 60px 180px 0 grey, 80px 180px 0 white, 100px 180px 0 white, 120px 180px 0 white, 140px 180px 0 grey, 160px 180px 0 grey, 180px 180px 0 grey, 200px 180px 0 grey, 220px 180px 0 black,
    60px 200px 0 black, 80px 200px 0 black, 100px 200px 0 grey, 120px 200px 0 grey, 140px 200px 0 grey, 160px 200px 0 grey, 180px 200px 0 black, 200px 200px 0 black,
    100px 220px 0 black, 120px 220px 0 black, 140px 220px 0 black, 160px 220px 0 black;
}

              
            
!

JS

              
                
              
            
!
999px

Console