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

              
                <main lang="en">
	<h1>
		<b>Chapter 1</b>
		In which we are introduced to Winnie-the-Pooh and some Bees, and the stories begin
	</h1>
	<p>Here is Edward Bear, coming downstairs now, bump, bump, bump, on the back of his head, behind Christopher Robin. It is, as far as he knows, the only way of coming downstairs, but sometimes he feels that there really is another way, if only he could stop bumping for a moment and think of it. And then he feels that perhaps there isn't. Anyhow, here he is at the bottom, and ready to be introduced to you. Winnie-the-Pooh.</p>
</main>
			
              
            
!

CSS

              
                *, ::before, ::after {
	box-sizing: border-box;
}

html {
	font: 1.2em/1.5 Abril Text, Georgia, serif;
	font-variant-numeric: lining-nums;
}

body {
	margin: 0;
}

main {
	margin: 1.5em;
	padding: 1.5em;
	max-width: 40em;
	background: hsl(0deg 0% 90%);
}

h1 {
	margin: 0;
	padding: 0.25em 0.5em;
	background: white;
	font: normal 1.6em/1.9 Abril Display, Georgia, serif;
	
	display: inline;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

p {
	margin: 2em 0 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console