Pen Settings



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


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.


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.


	h1 Nature
		p Lorem ipsum dolor sit amet consectetur adipisicing elit. Minus, laborum suscipit doloremque, expedita voluptatum maiores corporis modi assumenda esse consectetur error nulla, vero alias.
		a(href="") Learn more
		<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-family:-apple-system, BlinkMacSystemFont, &quot;San Francisco&quot;, &quot;Helvetica Neue&quot;, Helvetica, Ubuntu, Roboto, Noto, &quot;Segoe UI&quot;, Arial, sans-serif;font-size:12px;font-weight:bold;line-height:1.2;display:inline-block;border-radius:3px;" href=";utm_campaign=photographer-credit&amp;utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Anders Jildén"><span style="display:inline-block;padding:2px 3px;"><svg xmlns="" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-1px;fill:white;" viewBox="0 0 32 32"><title>unsplash-logo</title><path d="M20.8 18.1c0 2.7-2.2 4.8-4.8 4.8s-4.8-2.1-4.8-4.8c0-2.7 2.2-4.8 4.8-4.8 2.7.1 4.8 2.2 4.8 4.8zm11.2-7.4v14.9c0 2.3-1.9 4.3-4.3 4.3h-23.4c-2.4 0-4.3-1.9-4.3-4.3v-15c0-2.3 1.9-4.3 4.3-4.3h3.7l.8-2.3c.4-1.1 1.7-2 2.9-2h8.6c1.2 0 2.5.9 2.9 2l.8 2.4h3.7c2.4 0 4.3 1.9 4.3 4.3zm-8.6 7.5c0-4.1-3.3-7.5-7.5-7.5-4.1 0-7.5 3.4-7.5 7.5s3.3 7.5 7.5 7.5c4.2-.1 7.5-3.4 7.5-7.5z"></path></svg></span><span style="display:inline-block;padding:2px 3px;">Anders Jildén</span></a>
a.attribution(href="") Original dribbble shot



	--box-x-padding 2rem
	--box-y-padding 2rem
	@media (min-width 40em)
		--box-y-padding 4rem
	@media (min-width 60em)
		--box-x-padding 3rem
		--box-y-padding 6rem

@media (min-width 40em)
		display grid
		grid-template-rows repeat(3, auto)
		grid-template-columns 4fr 4fr 5fr
		grid-template-areas '. . title' 'img img content' 'img img .'
		max-width 1000px
		margin-right auto
		margin-left auto

	// The white box that's drawn behind the content
	// You can totally place it on the grid!
		content ''
		grid-column 2 / -1
		grid-row 1 / 3
		position relative
		z-index -1 // place it behind the other blocks
		background white
		box-shadow 0 .2em 1em hsla(20, 20, 20, 20%)

		grid-area title
		padding-top var(--box-y-padding)
		padding-left var(--box-x-padding)

		grid-area content
		padding-bottom var(--box-y-padding)
		padding-left var(--box-x-padding)
		padding-right var(--box-x-padding)

		grid-area img

// Non-important styles
@import url(",400i,700")
	font-family Montserrat, sans-serif
	font-size 15px
	background-color whitesmoke
	padding 1em

	font-size 4em
	margin 0 0 1rem
	font-family serif
	position relative
	// The line on top of the title
		content ''
		position absolute
		width 6rem
		background-color hsl(0, 0, 80%)
		height 2px
		top 0
		left 0
		@media (min-width 40em)
			left var(--box-x-padding)
			top var(--box-y-padding)
	color hsl(0, 0, 30%)
	margin-bottom var(--box-y-padding)
	@media (min-width 40em)
		margin-bottom 0
	margin-top 0
	margin-bottom var(--box-y-padding)
	line-height 1.5
.content a
	text-decoration none
	border 1px solid hsl(0, 0, 70%)
	border-radius 1em
	padding 1em 2em
	text-transform uppercase
	font-size 11px
	font-weight 700
	letter-spacing .05em
	color inherit
	display inline-block
	background-color white
	position relative
		position absolute
		left 0
		bottom 0
	max-width 100%
	vertical-align middle
	box-shadow 0 .2em 1.2em hsla(20, 20, 20, 10%)
	position absolute
	bottom 0
	right 0
	background-color #ea4c89 // dribbble pink
	color white
	padding .5em 1em