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="button-shadow">
	<div class="red-button">
		<span class="fa-stack fa-5x">
			<i class="fa fa-circle fa-stack-2x"></i>
			<i class="fa fa-power-off fa-stack-1x fa-inverse"></i>
		</span>
	</div>
</div>
              
            
!

CSS

              
                body { 
	background: black; 
}

.red-button,
.button-shadow {
	border-radius: 50%;
	height: 160px;
	margin: 25px auto;
	width: 160px;
}

.red-button {
	background: radial-gradient(
		circle at top,
		white,
		yellow,
		orange,
		red,
		darkred,
		maroon,
		indigo,
		black
	);
	border-right: 5px solid black;
	border-left: 5px solid black;
	border-bottom: 5px solid black;
	cursor: pointer;
}

.red-button:active {
	box-shadow: 
		0 -5px 5px cyan,
		-5px -10px 20px indigo,
		2px -10px 20px magenta;
	border-bottom: 10px solid black;
	transform: scale(0.97, 0.95) translateY(5px);
}

.button-shadow {
		box-shadow: 
		-5px 10px 20px black, 
		5px 10px 20px black, 
		-5px 20px 30px blue, 
		5px 20px 30px blue;
}

.fa-circle {
	color: red;
	text-shadow: 0 2px 2px darkblue;
}

.fa-power-off {
	text-shadow: 
		-1px -1px 10px white, 
		1px -1px 10px white, 
		-1px 1px 10px blue, 
		1px 1px 10px blue,
		0px -20px 50px orange,
		20px 0 50px darkred, 
		-20px 0 50px darkred,
		0 20px 50px indigo;
}
              
            
!

JS

              
                
              
            
!
999px

Console