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

              
                <body>
	<header>
		<h1>Header</h1>
	</header>
	<article>
		<h2>Fixed Footer</h2>
		<p>Note that even though the contents of the page do not fill the entire height of the viewport that the footer is "stuck to the bottom of the viewport."</p>
		<p>Resize your browser to see what happens when the page content extends below the "fold".</p>
	</article>
	<article>
		<h2>"Sticky" footer</h2>
		<p>This technique is not quite the same as a sticky footer. A "sticky" footer will stay stuck at the bottom of the page even when you are scrolling up and down the page - it will <em>always</em> be visible.</p>
		<p>Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend. Ut nonummy.</p>
	</article>

	<footer>
		<p><sup>&copy;</sup>Mister Fox</p>
	</footer>
</body>
<!-- https://stackoverflow.com/questions/643879/css-to-make-html-page-footer-stay-at-bottom-of-the-page-with-a-minimum-height-b -->
              
            
!

CSS

              
                /* Trick */
body {
	display: flex;
	flex-direction: column;
}
header {
	background: lightcyan;
}
footer {
	margin-top: auto;
	text-align: center;
	height: 50px;
	background: #ff9900;
}
/* prettiness */
html,
body {
	font-family: Arial;
	height: 100%;
	margin: 0;
}
h1,
h2,
p {
	margin: 8px;
}

              
            
!

JS

              
                
              
            
!
999px

Console