Pen Settings



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


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.


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.


                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolores enim tenetur quae praesentium voluptatibus reprehenderit reiciendis dolorum perspiciatis corporis molestias distinctio nobis quasi cum id facere. Rerum tempora dignissimos aspernatur.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit optio id dolor voluptatibus cupiditate omnis pariatur rem laborum vitae est perspiciatis accusamus ipsam autem magni facere a ratione ullam illum.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem natus id voluptatibus ex exercitationem libero minima voluptate repellendus illo odit et hic iure laudantium qui dolorem doloribus nobis dolore inventore.</p>


                @import url(;
  background-color: #3498db;
  font-family: 'Open Sans', sans-serif;
  padding:50px 30px;
/*Uncomment the following code to adjust the font size and make it more readable on small screens*/
@media screen and (max-width:600px){
    font-size: 3vw;
@media screen and (max-width:480px){
    font-size: 4vw;


                causeRepaintsOn = $("p");

$(window).resize(function() {
  causeRepaintsOn.css("z-index", 1);