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 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 id="bg"></div>
              
            
!

CSS

              
                #bg{
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 0;
                background: -webkit-linear-gradient(left, 
                                                    #feb5b3 0%, 
                                                    #feb5b3 2.86%,
                                                    
                                                    #dc8280 2.86%, 
                                                    #dc8280 5.72%, 
                                                    
                                                    #fee0df 5.72%,
                                                    #fee0df 8.58%,
                                                    
                                                    #ffcecd 8.58%, 
                                                    #ffcecd 11.14%, 
                                                    
                                                    #c68381 11.14%, 
                                                    #c68381 14.3%, 
                                                    
                                                    #ffd498 14.3%, 
                                                    #ffd498 17.16%, 
                                                    
                                                    #ffe6c2 17.16%, 
                                                    #ffe6c2 20.02%, 
                                                    
                                                    #ffdfb2 20.02%, 
                                                    #ffdfb2 22.88%, 
                                                    
                                                    #ffca7f 22.88%, 
                                                    #ffca7f 25.74%, 
                                                    
                                                    #f1c27f 25.74%, 
                                                    #f1c27f 28.6%, 
                                                    
                                                    #fff498 28.6%, 
                                                    #fff498 31.46%, 
                                                    
                                                    #fff9cb 31.46%, 
                                                    #fff9cb 34.32%, 
                                                    
                                                    #fff6ae 34.32%, 
                                                    #fff6ae 37.18%, 
                                                    
                                                    #fffce7 37.18%, 
                                                    #fffce7 40.04%, 
                                                    
                                                    #fff17f 40.04%, 
                                                    #fff17f 42.9%, 
                                                    
                                                    #a8ee81 42.9%, 
                                                    #a8ee81 45.76%, 
                                                    
                                                    #dfffcd 45.76%, 
                                                    #dfffcd 48.62%, 
                                                    
                                                    #98c67f 48.62%, 
                                                    #98c67f 51.48%, 
                                                    
                                                    #eeffe5 51.48%, 
                                                    #eeffe5 54.34%, 
                                                    
                                                    #c8f3b1 54.34%, 
                                                    #c8f3b1 57.2%, 
                                                    
                                                    #7fb2eb 57.2%, 
                                                    #7fb2eb 60.06%, 
                                                    
                                                    #badbff 60.06%, 
                                                    #badbff 62.92%, 
                                                    
                                                    #7fa2c9 62.92%, 
                                                    #7fa2c9 65.78%, 
                                                    
                                                    #e2ecf8 65.78%, 
                                                    #e2ecf8 68.64%, 
                                                    
                                                    #a3cdfc 68.64%, 
                                                    #a3cdfc 71.5%, 
                                                    
                                                    #b37fce 71.5%, 
                                                    #b37fce 74.36%, 
                                                    
                                                    #f0d4ff 74.36%, 
                                                    #f0d4ff 77.22%, 
                                                    
                                                    #dabce9 77.22%, 
                                                    #dabce9 80.08%, 
                                                    
                                                    #f8ecff 80.08%, 
                                                    #f8ecff 82.94%, 
                                                    
                                                    #f5e3ff 82.94%, 
                                                    #f5e3ff 85.8%, 
                                                    
                                                    #cccccc 85.8%, 
                                                    #cccccc 88.66%, 
                                                    
                                                    #a3a3a3 88.66%, 
                                                    #a3a3a3 91.52%, 
                                                    
                                                    #b6b6b6 91.52%, 
                                                    #b6b6b6 94.38%, 
                                                    
                                                    #cccccc 94.38%, 
                                                    #cccccc 97.24%, 
                                                    
                                                    #ebebeb 97.24%, 
                                                    #ebebeb 100% 
                                                    );
            }
              
            
!

JS

              
                /*
	Yet another image from simpledesktops.

http://simpledesktops.com/browse/desktops/2009/nov/25/self-referential/

	Original image by Tom Watson
	Turned into css by Me (Mads Cordes)
*/
              
            
!
999px

Console