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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

	<meta charset="utf-8">
	<title>Animal Trading Cards</title>
	<link rel="stylesheet" type="text/css" href="styles.css">
	<div class="card">
		<!-- your favorite animal's name goes here -->
		<!-- your favorite animal's image goes here -->
		<img src="http://4.bp.blogspot.com/-ZuA-7FNmz2g/T-SIWIsf6TI/AAAAAAAAARI/5W0V4h938GE/s1600/Cheetah3.jpg" alt="name-of-your-animal" class="cat">
		<div class="inner-card">
			<!-- your favorite animal's interesting fact goes here -->
			<p class="key-fact">The speed of a hunting cheetah averages 64 km/h (40 mph) during a sprint</p>
				<!-- your favorite animal's list items go here -->
				<li><span>Binominal name</span>: Acinonyx jubatus</li>
				<li><span>Top speed</span>: 112km/h (70mph)</li>
				<li><span>Global population</span>: 7,100</li>
				<li><span>Lifespan</span>: 15 years</li>
			<!-- your favorite animal's description goes here -->
			<p>The cheetah is a large felid of the subfamily Felinae that occurs mainly in eastern and southern Africa and a few parts of Iran. The cheetah is characterised by a slender body, deep chest, spotted coat, a small rounded head, black tear-like streaks on the face, long thin legs and a long spotted tail.</p>
              /* add your CSS here */
.cat {
	width: 300px;
	height: auto;

.card {
	width: 300px;
	padding: 10px;
	border: 1px solid rgba(0,0,0,0.2);
	-webkit-box-shadow: 10px 10px 0px -3px rgba(0,0,0,0.1);
	-moz-box-shadow: 10px 10px 0px -3px rgba(0,0,0,0.1);
	box-shadow: 10px 10px 0px -3px rgba(0,0,0,0.1);
	margin: 20px;

h3 {
	font-weight: bold;
	font-size: 1.5em;

.key-fact {
	font-style: italic;

.inner-card {
	width: 280px;
	border: 1px solid rgba(0,0,0,0.2);
	padding: 0 10px 0 10px;
	margin-top: 10px;
	font-size: 0.9em;

li {
	list-style: none;
	text-align: left;

li span {
	font-weight: bold;

ul {
	padding: 0px;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.