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 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

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

              
                <div class="custom01">
	custom01
	<p>
		<input type="text" id="custom01" />
		<label for="custom01">label</label>
	</p>
</div>

<div class="custom02">
	custom02
	<p>
		<input type="text" id="custom02" />
		<label for="custom02">label</label>
	</p>
</div>

<div class="custom03">
	custom03
	<p>
		<input type="text" id="custom03" />
		<label for="custom03">label</label>
	</p>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
body {
	color: #333;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
}
div {
	padding: 5em 2em 0;
}
.custom01 {
	padding-top: 2em;
}
p {
	margin-top: 2.5em;
}



.custom01 p {
	position: relative;
}
.custom01 input,
.custom01 label {
	-webkit-transition: all .2s;
	transition: all .2s;
	font-size: 15px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
}
.custom01 input {
	width: 300px;
	padding: .5em .5em .5em 3.5em;
	border: 1px solid #aaa;
	background: #fff;
	border-radius: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	color: #333;
}
.custom01 label {
	position: absolute;
	top: .7em;
	left: .5em;
	color: #aaa;
	line-height: 1;
}
.custom01 input:focus {
	padding-left: .5em;
}
.custom01 input:focus + label {
	top: -1.5em;
}



.custom02 p {
	position: relative;
}
.custom02 input,
.custom02 label {
	-webkit-transition: all .2s;
	transition: all .2s;
	font-size: 15px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
}
.custom02 input {
	width: 300px;
	padding: .5em .5em .5em 3.5em;
	border: 1px solid #aaa;
	background: #fff;
	border-radius: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	color: #333;
}
.custom02 label {
	position: absolute;
	top: .7em;
	left: .5em;
	color: #aaa;
	line-height: 1;
}
.custom02 input:focus {
	padding-left: 1.5em;
}
.custom02 input:focus + label {
	top: .75em;
	left: -.5em;
	-webkit-transform: rotate(-90deg) scale(.7);
	transform: rotate(-90deg) scale(.7);
}



.custom03 p {
	position: relative;
}
.custom03 input,
.custom03 label {
	-webkit-transition: all .2s;
	transition: all .2s;
	font-size: 15px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
}
.custom03 input {
	width: 300px;
	padding: .5em .5em .5em 3.5em;
	border: 1px solid #aaa;
	background: #fff;
	border-radius: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	color: #333;
}
.custom03 label {
	position: absolute;
	top: .7em;
	left: .5em;
	color: #aaa;
	line-height: 1;
}
.custom03 input:focus {
	padding-left: .5em;
}
.custom03 input:focus + label {
	top: -2.5em;
	left: 0;
	padding: .4em .7em .45em;
	border-radius: .2em;
	background-color: #3498db;
	color: #fff;
	font-size: 14px;
}
.custom03 input:focus + label::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: #3498db;
}
              
            
!

JS

              
                
              
            
!
999px

Console