Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

Save Automatically?

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>
	<div>
		<h1>hoge</h1>
		<h2>hugahuga</h2>
	</div>
</header>

<section>
	<div class="container">
		<h3>foo bar</h3>
		<p>
			Lorem ipsum dolor sit amet consectetur adipisicing elit. Asperiores harum veritatis nemo magni odio reprehenderit atque, esse animi porro suscipit vero nobis modi quis. Exercitationem quasi beatae, assumenda officia illum sunt. Cum voluptas maiores vitae eius hic inventore deleniti placeat perferendis quam ut nostrum maxime optio voluptatibus ab laboriosam, quia consectetur atque minus?
		</p>
		<p>
			Adipisci amet aut sint voluptates delectus aperiam? Veniam ab illum enim in libero nihil culpa explicabo perspiciatis veritatis non repellendus architecto excepturi nostrum porro voluptatem aperiam animi asperiores, a voluptatibus temporibus minima voluptas ipsa! Recusandae nostrum, aut, voluptates est error iusto, eaque excepturi soluta quas maiores amet.

		</p>
	</div>
</section>
              
            
!

CSS

              
                * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	width: 100%;
	height: 100%;
	/* Existing styles here */
	overflow: hidden;
}
body {
	width: 100%;
	height: 100%;
	font-size: 18px;
	color: #212121;
	/* Existing styles here */
	perspective: 4px; /* The depth */
	overflow-x: hidden;
	overflow-y: scroll;
}
header {
	width: 100%;
	min-height: 100vh;
	position: relative;
	/* Existing styles here */
	transform-style: preserve-3d;
}
header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	background: url("https://source.unsplash.com/1600x900/?nature,water");
	background-size: cover;
	z-index: 0;
	/* Existing styles here */
	transform: translateZ(-4px) scale(2);
}
header div {
	position: absolute;
	z-index: 1;
	top: 50%;
	padding: 0 30px;
	/* Existing styles here */
	transform: translateZ(-2px) scale(1.5);
}
header h1 {
	font-size: 4.5rem;
	color: #009688;
}
header h2 {
	font-size: 2.2rem;
}
section {
	width: 100%;
	background: white;
	/* Existing styles here */
	position: relative;
	z-index: 2;
}
.container {
	margin: auto;
	max-width: 1000px;
	padding: 80px 40px;
}

.container p {
	padding-top: 30px;
	line-height: 1.8;
}

              
            
!

JS

              
                
              
            
!
999px

Console