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

              
                <article>
	<p>
		Reroute all power to the energy shield. We've got to hold them till all transports are away. Prepare for ground assault. What is it, General? Lord Vader, the fleet has moved out of light-speed, and we're preparing to... Aaagh!
	</p>
	<q>Two fighters against a Star Destroyer?</q>
	<p>
		You have failed me for the last time, Admiral.
	</p>
	<p>
		Captain Piett. Yes, my lord. Make ready to land our troops beyond the energy shield and deploy the fleet so that nothing gets off that system. You are in command now, Admiral Piett. Thank you, Lord Vader. All troop carriers will assemble at the north entrance. The heavy transport ships will leave as soon as they're loaded.
	</p>
	<p>
		Only two fighter escorts per ship. The energy shield can only be opened for a short time, so you'll have to stay very close to your transports.
	</p>
	<p>
		Two fighters against a Star Destroyer?
	</p>
	<p>
		The ion cannon will fire several shots to make sure that any enemy ships will be out of your flight path. When you've gotten past the energy shield, proceed directly to the rendezvous point.
	</p>
</article>
              
            
!

CSS

              
                body { 
	background-color: lightgrey;
}

article {
	padding: 20px 20px;
	max-width: 600px;
	margin: 0 auto;
}

p {
	font-family:  Georgia, Verdana, serif;
	font-size: 17px;
	line-height: 1.6;
}

q {
	float: inline-end;
	
	font-family: 'Proxima Nova', Futura, Helvetica, sans-serif;

	letter-spacing: 1.5px;
	font-size: 30px;
	
	line-height: 1.25em;
	text-transform: uppercase;
	color: #8e2323;
	max-width: 350px;
  margin: 10px -15% 10px 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console