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>Heading Level One</h1>
<h2>Heading Level Two</h2>
<h3>Heading Level Three</h3>
<h4>Heading Level Four</h4>
<h5>Heading Level Five</h5>
<h6>Heading Level Six</h6>
<p>This page includes some very basic styling that might be used on any web page. Generally this should be used after a reset or normalize is applied. A reset like <a href="https://meyerweb.com/eric/tools/css/reset/"> Eric Meyer's Reset </a> will strip out all styling and force you to add everything back in.  <a href="https://necolas.github.io/normalize.css/">Normalize.css</a> is designed to keep basic spacing and alignment and make it consistent across browsers (it's not by default).</p>
<p>Currently this page is using <strong> Normalize </strong></p>
<p>You can experiment with how Reset and Normalize look by clicking on the gear icon next to CSS and changing the CSS base to normalize or reset.</p>
<p>Here are the basics of what this page does:</p>
<ul>
  <li>Set the base font-size, font-family, font-weight, line-height, color and background color on the HTML and BODY elements. </li>
  <li>Makes sure there is space between paragraphs and after list items.</li>
  <li>Sets a base font-family and font-weight for headings.</li>
  <li>Individually sets font-size, and line-height and margin for headings.</li>
  <li>Basic List styles in case a reset is used. You can leave that off if you're not using a reset.</li>
</ul> 
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit neque placeat corrupti obcaecati magni. Incidunt provident, voluptas accusantium non dolore totam ab, earum, ex veritatis beatae labore delectus voluptatibus harum?</p>
 <h2>Heading Level Two</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam commodi iusto ut consequatur ea maiores officiis quaerat, accusamus doloribus asperiores ad facilis alias, iure, inventore quidem temporibus illo consequuntur rerum?</p>
<h3>Heading Level Three</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam commodi iusto ut consequatur ea maiores officiis quaerat, accusamus doloribus asperiores ad facilis alias, iure, inventore quidem temporibus illo consequuntur rerum?</p>
<h4>Heading Level Four</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam commodi iusto ut consequatur ea maiores officiis quaerat, accusamus doloribus asperiores ad facilis alias, iure, inventore quidem temporibus illo consequuntur rerum?</p>
<h5>Heading Level Five</h5>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam commodi iusto ut consequatur ea maiores officiis quaerat, accusamus doloribus asperiores ad facilis alias, iure, inventore quidem temporibus illo consequuntur rerum?</p>
<h6>Heading Level Six</h6>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam commodi iusto ut consequatur ea maiores officiis quaerat, accusamus doloribus asperiores ad facilis alias, iure, inventore quidem temporibus illo consequuntur rerum?</p>
              
            
!

CSS

              
                /* Optional, include a web font  */
@import url('https://fonts.googleapis.com/css?family=Lato:700');
@import url('https://fonts.googleapis.com/css?family=Gentium+Book+Basic:400,400i,700,700i');

/* The html and body selectors below set the base font for the entire page */
html {font-size: 1em;}

body {
  font-family: 'Gentium Book Basic', serif;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  
/*   there are other ways to do this but it's good to remember not to let text run right up to the edge of borders or color changes, images etc.' */
/*   padding: 1em; */
}

/* This adds space between paragraphs and list items
   NOTE: most Navigations use list items so you will need to 
   explicity set the margins on those so this rule doesn't 
   mess up your navigation styling */
p, li {
  margin-top: 0;
  margin-bottom: 1em;
}

/* Base Styling for headings  */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  font-family: Lato, sans-serif;
}

/* For each of your headings at minimum set the margin, size, line-height. Adjust font-weight and other properties as needed. */

h1 {
  font-size: 5.063em;
  line-height: 1;
  margin: 0 0 0.5em 0;
}

h2 {
  font-size: 3.375em;
  line-height: 1.2;
  margin: 1.5em 0 0.5em 0;
}

h3 {
  font-size: 2.25em;
  line-height: 1;
  margin: 1.5em 0 0.25em 0;
}

h4 {
  font-size: 1.5em;
  line-height: 1;
  margin: 1.5em 0 0.5em 0;
}

h5 {
  font-size: 1em;
  line-height: 1;
  margin: 1.5em 0 0.5em 0;
  
}

h6 {
  font-size: 1em;
  line-height: 1.5;
  margin: 1em 0 0 0;
  font-weight: 400; /* normal */
  text-transform: uppercase;
}

              
            
!

JS

              
                
              
            
!
999px

Console