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

              
                <header>HEADER</header>
<div id="wrapper">
	<nav class="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic, aliquam.</nav>
	<main class="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque, asperiores, necessitatibus, ad, doloribus doloremque explicabo quam fugit et praesentium quae labore sequi ratione voluptatibus corporis minima in voluptatem hic! Natus, aspernatur, earum dolores distinctio quos optio delectus ducimus amet nesciunt nobis sed nulla odit deserunt laudantium debitis voluptates dolore dolor est quam maxime quasi corrupti qui. Rem, voluptates itaque quos nam odit architecto maxime iure aliquam explicabo quo sit porro dolores quisquam ducimus fugit id quod. Placeat, labore consequuntur possimus dolor perspiciatis quidem nulla quia inventore exercitationem suscipit nostrum eos incidunt iure quam explicabo accusamus eveniet repellat perferendis similique maxime!</main>
	<aside class="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci, iure ipsa dolorem iusto aliquid recusandae.</aside>
</div>
<footer>FOOTER</footer>
              
            
!

CSS

              
                body {
	background-color: #333;
	margin:1em;
}
#wrapper {
	margin:0 auto;
	display: table;
}
.content {
	padding:.5em;
	box-sizing: border-box;
	display:table-cell;
}

nav {
	background-color: #defd90;
	width:20%;
}
main {
	background-color: #f7abd9;
}
aside {
	background-color: #9ed6f9;
	width:30%
}
header {
	background-color: #fdf560;
	padding:.5em;

}
footer {
	background-color: #f7c640;
	padding:.5em;
}
              
            
!

JS

              
                
              
            
!
999px

Console