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

              
                <h1>Gradient tests</h1>
<p>
  Quisque porttitor urna quis blandit imperdiet. Praesent a varius lectus, ac elementum arcu. Vestibulum accumsan eget eros ac luctus. Cras accumsan velit odio, sit amet egestas urna aliquet ac. Sed egestas laoreet iaculis. Suspendisse elementum sem vel ligula porta consequat. Suspendisse potenti. Nulla sodales metus vel mattis scelerisque. Nulla laoreet odio vitae risus hendrerit, non sagittis purus vestibulum. Ut ut neque sit amet leo laoreet egestas sagittis vitae felis. In ut egestas orci. Nullam pretium tristique tellus, ac dapibus ligula dignissim in!
</p>
<p>
  Donec facilisis a ex nec aliquet. Integer nec tristique sapien, nec aliquam sem? Sed bibendum dignissim dui, interdum finibus mi suscipit faucibus? Sed ullamcorper ante a nisl imperdiet, vitae pellentesque turpis dapibus? Donec nec vehicula lacus. Ut ultrices purus aliquet, pulvinar magna vitae, tempus augue. Nunc malesuada finibus ante, nec posuere nunc mollis id. Nullam turpis metus, condimentum nec turpis vel, pharetra porta eros. Aliquam pharetra posuere ipsum; sit amet ornare nisl bibendum sed. Praesent consequat varius erat et ultricies. Vivamus vel auctor nisl, vitae dignissim risus. Praesent eleifend arcu nec malesuada fringilla! Nullam arcu odio, interdum sed risus ut, viverra molestie turpis. Fusce in mauris sit amet sapien sagittis euismod.
</p>
<p>
  Praesent a ex ultrices, imperdiet leo nec, condimentum quam. Nulla quis commodo mi. Donec fermentum vehicula semper! Cras ultricies at orci ut molestie. Mauris pellentesque, leo ac ornare tincidunt, lorem massa vestibulum purus, at venenatis tortor nisi in est. Aenean consectetur felis ac quam tincidunt, blandit efficitur eros feugiat. Nunc sodales sem eros, vitae elementum arcu finibus eu. Vestibulum vestibulum pretium volutpat. Mauris at ornare sapien. In hac habitasse platea dictumst. Fusce et molestie sem, vitae volutpat lacus. Mauris auctor diam quis efficitur sollicitudin. Phasellus in dolor faucibus, maximus leo sit amet, tristique lorem. Phasellus vehicula mattis diam, quis dictum nunc ultrices a.
</p>

              
            
!

CSS

              
                p {
  max-width: 640px;
  min-height: 200px;
}
p:first-of-type {
  background-image: linear-gradient(10deg, #ccc 35%, #ddd 35%, #ddd 65%, #eee 65%, #eee 95%);
}
p:nth-of-type(2) {
  background-image: -moz-repeating-radial-gradient(top left, circle, rgba(0,0,0,0.9), rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.5) 20%);
}
p:last-of-type {
  background-image: radial-gradient(50% 50%, #fff, #666);
}

p:first-letterr {
  font-size: 300%;
}
p:first-line {
  font-size: 150%;
}

              
            
!

JS

              
                
              
            
!
999px

Console