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

              
                <div>hogehoge</div>
              
            
!

CSS

              
                * {
	margin: 0;
	padding: 0;
}
div {
	width: 100%;
	height: 100vh;
	background: linear-gradient(125deg, #fdff9c 0%, #0500ff 100%),
		linear-gradient(180deg, #d3d3d3 0%, #161616 100%),
		linear-gradient(
			310deg,
			#00f0ff 0%,
			#00f0ff 20%,
			#0017e3 calc(20% + 1px),
			#0017e3 40%,
			#000f8f calc(40% + 1px),
			#000f8f 70%,
			#00073f calc(70% + 1px),
			#00073f 100%
		),
		linear-gradient(
			285deg,
			#ffb6b9 0%,
			#ffb6b9 35%,
			#fae3d9 calc(35% + 1px),
			#fae3d9 45%,
			#bbded6 calc(45% + 1px),
			#bbded6 65%,
			#61c0bf calc(65% + 1px),
			#61c0bf 100%
		);
	background-blend-mode: overlay, overlay, exclusion, normal;
}

              
            
!

JS

              
                
              
            
!
999px

Console