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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <div class="rel fit">
  <div class="background grayscale subtle abs fit"></div>
  <h1 class="padded-centered">The Infinite van Gogh Patterns</h1>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi molestie elementum sapien et placerat. Etiam et sapien tempor nisi rutrum blandit ac at arcu. Nullam sollicitudin magna viverra metus dictum posuere. Pellentesque sed lorem quis lectus porttitor ullamcorper. Donec non nulla quis ligula convallis volutpat rhoncus eget tellus. Curabitur euismod mi vel euismod porttitor. Integer at tempus nulla. Sed et finibus purus. Maecenas tortor nunc, malesuada semper convallis id, condimentum non odio. Proin nec aliquet tortor.
  Aliquam elementum tempus ipsum, ut hendrerit mi interdum eu. Donec viverra orci orci, condimentum tincidunt nisl rutrum ac. Sed in est dui. Proin turpis lorem, pharetra vitae urna ut, tincidunt aliquam velit. Nullam vulputate lorem sit amet est aliquet laoreet. Ut mollis orci at suscipit varius. Aenean arcu neque, porta eu sem ut, mollis venenatis urna. Nam cursus, elit non laoreet eleifend, nulla ipsum posuere ligula, congue feugiat elit lacus vel diam. Maecenas hendrerit ante vitae urna porttitor fringilla.
  Nunc eu tincidunt ligula, id congue eros. Duis imperdiet sollicitudin purus sit amet congue. Etiam feugiat nibh orci, vel viverra ligula vulputate sed. Morbi aliquet maximus turpis, viverra elementum mi pharetra tincidunt. Sed pulvinar a neque a tempus. Aenean consectetur interdum finibus. Duis tempor nisl.
  <p class="padded-centered">
    Background pattern by <a href="">Artlandia_Demos</a>.
		A sample page for "Patterns for Your Webpage"
		Licensed under CC BY 4.0.



                body {
  margin: 0;
.rel {
  position: relative;
.abs {
  position: absolute;
.fit {
  width: 100%;
  height: 100%;
.padded-centered {
  text-align: center;
  padding-top: 2em;
.background {
  background-image: url("");
  background-repeat: repeat;
  background-size: 50%;
.grayscale {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
.subtle {
  opacity: .2;
p {
  margin: 1em 10% 1em;