Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div id="zinn">
	<div class="book-edge fade-in">
		<div class="creds">The Classic National Bestseller</div>
		<div class="author">Howard Zinn</div>
		<div class="title"><span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 135.4 61.1"><path class="a" d="M15.7,28.1l-1.2,1.5c-1.7,2-4.4,5-4.4,9.7,0,7.6,8.4,8.8,13.4,8.8,3,0,15.3-1.7,35.2-14.4S91.6,10,111.1,10.4c7.6.1,11.3,2.6,13,5.6a10.8,10.8,0,0,1,.6,10.1c-.7,1.7-7.5,17.2-30.7,19.2C73,47,69.9,30.5,69.9,22.4c0-6,3.4-13,9.4-17.6C86.9-.9,96.4.1,96.4.1A31.1,31.1,0,0,0,84.6,4.3C78.7,7.9,71.7,15.2,71.7,22.8s1.8,12.9,6,15.5,7.4,3.8,15.5,3.3,16.8-4.3,23.6-9.7,9.1-12.5,4.4-17-21.7-1.5-34.7,6.8S56.3,43.3,46.1,47.5C33,52.9,20.6,52.6,13.7,48.8A9.9,9.9,0,0,1,8.6,36.9c.7-2.5,3.4-6.5,6.9-9.1Z"/><path class="a" d="M0,34.9s6.1,6.3,19.8,5.7c17.6-.9,46.4-18.3,46.4-18.3l-1-1.1S37.8,36.6,20.7,37.6.4,34.5.4,34.5Z"/><path class="a" d="M9.8,54.3a33.6,33.6,0,0,0,16.7,4.6c9.7,0,24.3-5.6,37.3-14s35-23,47.8-26.9c17.3-5.2,23.8.1,23.8.1a40,40,0,0,0-8.4-.9c-5.2-.1-12.9,1.5-21.2,5.4C100.5,25,83.4,37.1,72.7,44.3S48.3,61.1,30.1,61.1c-14.8,0-20.7-6.2-20.7-6.2Z"/></svg>A<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 135.4 61.1"><path class="a" d="M15.7,28.1l-1.2,1.5c-1.7,2-4.4,5-4.4,9.7,0,7.6,8.4,8.8,13.4,8.8,3,0,15.3-1.7,35.2-14.4S91.6,10,111.1,10.4c7.6.1,11.3,2.6,13,5.6a10.8,10.8,0,0,1,.6,10.1c-.7,1.7-7.5,17.2-30.7,19.2C73,47,69.9,30.5,69.9,22.4c0-6,3.4-13,9.4-17.6C86.9-.9,96.4.1,96.4.1A31.1,31.1,0,0,0,84.6,4.3C78.7,7.9,71.7,15.2,71.7,22.8s1.8,12.9,6,15.5,7.4,3.8,15.5,3.3,16.8-4.3,23.6-9.7,9.1-12.5,4.4-17-21.7-1.5-34.7,6.8S56.3,43.3,46.1,47.5C33,52.9,20.6,52.6,13.7,48.8A9.9,9.9,0,0,1,8.6,36.9c.7-2.5,3.4-6.5,6.9-9.1Z"/><path class="a" d="M0,34.9s6.1,6.3,19.8,5.7c17.6-.9,46.4-18.3,46.4-18.3l-1-1.1S37.8,36.6,20.7,37.6.4,34.5.4,34.5Z"/><path class="a" d="M9.8,54.3a33.6,33.6,0,0,0,16.7,4.6c9.7,0,24.3-5.6,37.3-14s35-23,47.8-26.9c17.3-5.2,23.8.1,23.8.1a40,40,0,0,0-8.4-.9c-5.2-.1-12.9,1.5-21.2,5.4C100.5,25,83.4,37.1,72.7,44.3S48.3,61.1,30.1,61.1c-14.8,0-20.7-6.2-20.7-6.2Z"/></svg></span> People's History <div>of the</div> United States</div>
		<div class="era">1492 - Present</div>
		<div class="review">&ldquo;Historians may well view it as a step toward a coherent new version of American History&rdquo; &#8212;Eric Foner, <em>New York Times Book Review</em></div>
		<div class="publisher">Harper<strong>Perennial</strong><img />Modern<strong>Classics</strong></div>
		<div class="pop"><strong>P.S.</strong><span>Insights,<br />Interviews<br />& More...</span></div>
	</div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Cinzel|Libre+Baskerville:400,700);


#zinn {
	background-color: #eee;
	overflow: hidden;
	text-align: center;
}
	#zinn .book-edge {
		border: 1px solid #999;
		background-color: #fff;
		box-shadow: 0 1px 4px 2px rgba(0,0,0,.2);
		position: relative;	
		display: inline-block;
		max-width: 888px;
		overflow: hidden;
		border-radius: 2px;
    transform: scale(.8)
	}
	#zinn .creds {
  	font-family: 'Libre Baskerville', serif;
		text-transform: uppercase;
		letter-spacing: 10px;
		font-size: 1.6vw;
		color: #225273;
		line-height: 1;
  	margin-top: 2.4em;
  	font-weight: bold;
	}
	#zinn .author {
  	font-family: 'Libre Baskerville', serif;
  	color: #eb3022;
  	text-transform: uppercase;
  	letter-spacing: 12px;
  	font-size: 5.5vw;
  	line-height: 1;
  	margin-top: 0.3em;
	}
	#zinn .era {
		width: 100%;
		padding: 10px 0;
		background-color: #eb3022;
  	font-family: 'Libre Baskerville', serif;
  	color: yellow;
  	text-transform: uppercase;
  	letter-spacing: 9px;
  	font-size: 3.4vw;
  	line-height: 1;
		margin-top: .7em;
		border-top: solid 5px #225273;
		border-bottom: solid 5px #225273;
	}
	#zinn .title {
    font-family: 'Cinzel', serif;
  	color: #225273;
  	text-transform: uppercase;
		letter-spacing: 25px;
		font-size: 9vw;
		line-height: 1.08;
    margin-top: .2em;
	}
		#zinn .title span {
			font-size: .8em;
			display: block;
		}
			#zinn .title span svg {
				fill: #a1a2a4;
				width: 137px;
				margin-left: -23px;
			}
			#zinn .title span svg:first-child { transform: scaleX(-1); }
		#zinn .title div {
			display: block;
			font-size: .6em;
			letter-spacing: 13px
		}
	#zinn .review {
		margin-top: 3em;
		padding: 0 3em;
		font-size: 1.06em;
		font-family: 'Libre Baskerville', serif;
		line-height: 2;
	}
	#zinn .publisher {
    font-size: .9em;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: left;
    margin: 4em 0 0 1.5em;
	}
	#zinn .pop {
		position: absolute;
		bottom: 1.5em;
		right: 1.5em;
    font-size: .7em;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
		line-height: 1.5;
		text-align: right;
		z-index: 1;
	}
		#zinn .pop span { color: #fff; }
		#zinn .pop strong {
			color: #fff;
			display: block;
			font-size: 1.5em;
			line-height: 1;
		}
		#zinn .pop::before {
			content: '';
			width: 17em;
			height: 17em;
			position: absolute;
			display: block;
	  	background-color: #225273;
	  	border-radius: 50%;
	  	bottom: -9em;
	  	left: -1em;
			z-index: -1;
		}
              
            
!

JS

              
                
              
            
!
999px

Console