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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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>
	<p>This is a pure CSS dashed gradient border! No canvas or SVG here. And no extra elements! And no covers (opaque elements to hide other elements) involved! We can have a (semi)tranparent background on the element it's applied to so that we can see through to whatever element is in the back. And the corners stay pretty on resize - just try it!</p>
	<p>Cake pie gingerbread brownie chocolate pudding. Chocolate cookie donut macaroon chocolate cake ice cream cupcake. Honey bear claw sugar plum bear claw brownie apple pie chocolate cake cookie pastry. Danish pie fruitcake sweet roll sesame cinnamon cloves.</p>
</div>
              
            
!

CSS

              
                $bw: 5px;

body {
	box-sizing: border-box;
	margin: 0;
	padding: 2vmin;
	min-height: 100vh;
	background: repeating-linear-gradient(45deg, #eee, #eee 3px, transparent 0, transparent 10px);
	font: 700 1.25em segoe script, comic sans ms, cursive
}

div {
	position: relative;
	border: solid $bw transparent;
	padding: 1em;
	background: rgba(#000, .1) padding-box;
	
	&:before {
		position: absolute;
		top: -$bw; right: -$bw; bottom: -$bw; left: -$bw;
		padding: $bw;
		background: linear-gradient(45deg, gold, purple, cyan, deeppink);
		--sl: red 30%, transparent 0, transparent 70%, red 0;
		--m: 
			linear-gradient(red, red) content-box, 
			linear-gradient(red, red) content-box, 
			linear-gradient(90deg, var(--sl)) 0 0/ 40px 40px round,
			linear-gradient(var(--sl)) 0 0/ 40px 40px round;
		-webkit-mask: var(--m);
		-webkit-mask-composite: xor, source-over, source-in, source-over;
						mask: var(--m);
						mask-composite: exclude, add, intersect, add;
		content: ''
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console