Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>H1 Example</h1>
    <h2>H2 Example</h2>
    <h3>H3 Example</h3>
    <h4>H4 Example</h4>
    <h5>H5 Example</h5>
    <h6>H6 Example</h6>
    <p>Paragraph example using hipster ipsum from hipsum.co: Austin ethical edison bulb church-key, kogi post-ironic bushwick. Paleo la croix mixtape ramps you probably haven't heard of them lumbersexual. Succulents vape glossier letterpress next level unicorn aesthetic try-hard cliche mustache yr. Authentic butcher normcore meh shaman hexagon swag franzen brunch pok pok blog. Vaporware thundercats roof party, +1 butcher affogato raclette dreamcatcher everyday carry 90's hella. Viral lumbersexual fingerstache quinoa air plant. Helvetica ethical tacos, hot chicken pinterest chicharrones pug succulents poke. Taxidermy celiac XOXO photo booth craft beer bushwick slow-carb DIY chicharrones vice church-key vape. Skateboard air plant glossier readymade direct trade, poutine typewriter prism try-hard you probably haven't heard of them polaroid farm-to-table man bun. </p>
    <ol>
      <li>Item 1</li>
      <li>Item 2</li>
      <li>Item 3</li>
    </ol>
    <ul>
      <li>Item 1</li>
      <li>Item 2</li>
      <li>Item 3</li>
    </ul>
    <blockquote>"Whether one is rich or poor, educated or illiterate, religious or nonbelieving, man or woman, black, white, or brown, we are all the same. Physically, emotionally, and mentally, we are all equal. We all share basic needs for food, shelter, safety, and love. We all aspire to happiness and we all shun suffering. Each of us has hopes, worries, fears, and dreams. Each of us wants the best for our family and loved ones. We all experience pain when we suffer loss and joy when we achieve what we seek. On this fundamental level, religion, ethnicity, culture, and language make no difference." <p class="quoteAuthor"> - Dalai Lama</p></blockquote>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Amatic+SC|Barlow');
body, html {
  height: 100%;
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #5D5046;
  }
h1, h2, h3, h4, h5, h6, p {
/*These settings are borrowed from the reset.css stylesheet,
http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain)*/
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
h1 {
  font-family: 'Amatic SC', cursive;
  font-size: 120px;
}
h2 {
  font-family: 'Amatic SC', cursive;
  font-size: 45px;
}
h3 {
  font-family: 'Amatic SC', cursive;
  font-size: 35px;
}
h4 {
  font-family: 'Amatic SC', cursive;
  font-size: 28px;
}
h5 {
  font-family: 'Amatic SC', cursive;
  font-size: 22px;
}
h6 {
  font-family: 'Amatic SC', cursive;
  font-size: 18px;
}
p, li {
  line-height: 1.5;
}
blockquote {
  font-size: 22px;
  line-height: 1.2;
  text-align: justify;
  margin: 0px 250px;
  padding-bottom: 80px;
}
.quoteAuthor {
  font-family: 'Amatic SC', cursive;
  font-size: 28px;
  text-align: right;
  font-style: italic;
  font-weight: bold;
  background: #9E9E9E;
  opacity: 0.8;
  color: white;
  padding-right: 10px;
  margin-top: 15px;
}
              
            
!

JS

              
                
              
            
!
999px

Console