Pen Settings



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


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


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.


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.


                <h1>Visualizing background‑clip</h1>

<h2>Background extends to outer-edge of the border box:</h2>
<div class="bc-border-box box">
	background-clip: border‑box

<h2>Background extends to outer-edge of the padding box:</h2>
<div class="bc-padding-box box">
	background-clip: padding‑box

<h2>Background extends to outer-edge of the content box:</h2>
<div class="bc-content-box box">
	background-clip: content‑box

<h2>Background is shown through the foreground text:</h2>
<div class="bc-text box">
	background-clip: text


                @import url(,600);

:root {
	/* Base font size */
	font-size: 10px;

*::after {
	box-sizing: border-box;	

body {
	font-family: "Source Code Pro", Courier, monospace;
	background: #080808;
	text-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.4);
	text-align: center;
	line-height: 1.5;
	min-height: 100vh;	
	color: #fcfcfc;	

h1 {
	font-size: 5rem;
	font-weight: 600;
	margin: 1em 0;

h2 {
	font-size: 2.3rem;
	font-weight: 400;
	margin-bottom: 1em;

.box {
	font-size: 2.6rem;
	font-weight: 400;
	background-image: linear-gradient(
		to right,
		#ff3cac 0%,
		#562b7c 50%,
		#2b86c5 100%
	background-origin: border-box;
	border: 1rem dotted #ff0;
	margin: 0 auto 6rem;
	padding: 4rem;
	max-width: 70rem;	

.bc-border-box {
	background-clip: border-box;

.bc-padding-box {
	background-clip: padding-box;

.bc-content-box {
	background-clip: content-box;

.bc-text {
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;