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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Smells like Bakin'</title>
	<link rel="stylesheet" type="text/css" href="css/normalize.css" media="screen">
	<link rel="stylesheet" type="text/css" href="css/style.css" media="screen">
	<link rel="stylesheet" type="text/css" href="css/grid.css" media="screen">
	<link href='https://fonts.googleapis.com/css?family=Nunito' rel='stylesheet' type='text/css'>
</head>

<body>
	<div class="container clearfix">
		<div class="logo four">
			<img src="https://i.imgur.com/PZKosQn.gif">
	    </div>
		
		<div class="twelve omega">
			<ul class="nav">
				<li><a href="#">About</a></li>
				<li><a href="#">Cupcakes &amp; Prices</a></li>
				<li><a href="#">Locations</a></li>
				<li><a href="#">Contact Us</a></li>
			</ul>
		</div>
		
		<div id="intro" class="nine">
			<h1>Opposites really do attract, especially in our kitchen! We combine unexpected flavors that melt together to create ironically delicious desserts.</h1>
			<p><a href="#" class="btn">Browse Our Cupcakes</a></p>
		</div>
		
		<div class="three omega">
			<img src="https://i.imgur.com/C7WuzEg.gif" alt="You Bake Me Blush">
	 	</div>

	 	<div class="featured-cupcake">
			<h2>Cupcake of the Week</h2>
			<p>This week's featured cupcake is the <a href="#">Avacado Chocolate cupcake</a>. Its strange <br /> combo of flavors will kick your taste buds in fiesta mode.</p>
			<img src="https://i.imgur.com/LZtFcYu.jpg" alt="Cupcake of the Week">
		</div>

		
		<div id="new-cupcake" class="five">
			<h2>Fresh Out the Oven</h2>
			<p>Our newest cupcakes are <a href="#">Bacon Me Crazy</a> and <a href="#">Jalapado So Spicy</a></p>
			<img src="https://i.imgur.com/DGdsXwS.jpg" alt="New Cupcake Bacon">
			<img src="https://i.imgur.com/RndQnJK.jpg" alt="New Cupcake Jalapeno">
		</div>

		
		   
		<div class="final seven">
			<h2>Inside the Kitchen</h2>
			<p>Smells Like Bacon' started out in the garage of the husband wife duo Allison &amp; Joseph. Allison is the baker, and Joseph found a way for them to make a business out of her tasty treats. Flash forward to today and they have a successful store front, catering business and cupcake truck.</p>
		</div>
		<p class="read"><a href="#">Read More</a></p>

		<div class="contact five omega">
			<h2>Get bakin' with US </h2>
			<p>Call US: 1-555-CUP-CAKE <br />
			Email us: <a href="#">bacon@smellslikebakin.com</a> <br /></p>
			<p>We announce all of our new flavors first through facebook &amp; Twitter, and even take requests</p>
			<img src="https://i.imgur.com/gaZINs5.gif">
			<img src="https://i.imgur.com/65Mr2V3.gif">
		</div>    
		
		
		    <p class="twelve copyright">&copy; 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
	    

    </div>


</body>

</html>
              
            
!

CSS

              
                
/*	--------------------------------------------------
Container
-------------------------------------------------- */
div#container, div.container { width: 1000px; margin: 0 auto; padding: 0; }
 
 
/*	--------------------------------------------------
Grid
-------------------------------------------------- */
.column-row, .row { margin: 0 0 18px -20px; }
.column, .columns { float: left; display: inline; margin: 0 0 0 20px; }
 
.one { width: 65px; }
.two { width: 150px; }
.three { width: 235px; }
.four { width: 320px; }
.five { width: 405px; }
.six { width: 490px; }
.seven { width: 575px; }
.eight { width: 660px; }
.nine { width: 745px; }
.ten { width: 830px; }
.eleven { width: 915px; }
.twelve { width: 1000px; }
 
.offset-by-one-half { margin-left: 42.5px; }
.offset-by-one { margin-left: 85px; }
.offset-by-two { margin-left: 170px; }
.offset-by-three { margin-left: 255px; }
.offset-by-four { margin-left: 340px; }
.offset-by-five { margin-left: 425px; }
.offset-by-six { margin-left: 510px; }
.offset-by-seven { margin-left: 595px; }
.offset-by-eight { margin-left: 680px; }
.offset-by-nine { margin-left: 765px; }
.offset-by-ten { margin-left: 850px; }

.omega {
	margin-right: 0px;
}
 
/* Clear the columns automagically, thanks @kneath */
.column-row:after, .row:after, .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
* html .column-row, * html .row, * html .clearfix { height: 1%; }
.column-row, .row, .clearfix { display: inline-block; }
.column-row, .row, .clearfix { display: block; }
 
/*	IE6 Problems ---------- */
body.ie .column-row { width: 1020px; }
body.ie .eight .column-row	 { width: 680px; }
body.ie .nine .column-row	 { width: 765px; }
body.ie .ten .column-row	 { width: 850px; }
body.ie .eleven .column-row { width: 935px; }
body.ie .two-thirds .column-row { width: 700px; }



body {
	color: #FFFF77;
	background: #441100;
	font-family: 'nunito', sans-serif;
}

p a {
	color: #3355BB;
}
 a {
	text-decoration: none;
	color: #FFFF77;
}

ul.nav {
	float: right;
	list-style: none;
	margin-top: -70px;

}

li {
	list-style: none;
	float: left;
	margin-right: 40px;
}



#intro {
	position: relative;
	margin-bottom: 75px;
	margin-top: 90px;

}

.btn {
	text-decoration: none;
	color: #FFFF77;
	background-color: #1188FF;
	border-radius: 25px;
	padding: 15px 30px; 
	margin: 40px 0px;
}

.btn:hover {
	background: #4488FF;
}

.three {
	float: right;
	margin-top: -360px;
}


.featured-cupcake img {
	border: 10px solid;
	

}

h2 {
	color: #559922;
}
	


#new-cupcake {
	position: none;
	float: right;
	margin-top: -515px;
	
}

	


#new-cupcake img {
	border: 10px solid;
	margin-bottom: 15px;
}


}
.final {
	position: none;
	margin-bottom: -200px;
	
}
p.read {
	color: #3355BB;
}

.contact {
	float: right;
	margin-top: -208px;
	
}

.copyright {
	text-align: center;
	border-top: solid #2A0400 7px;
	padding: 30px 0 20px 0;
	margin-top: 100px;
}




              
            
!

JS

              
                
              
            
!
999px
What do you call a two-legged ghost cow? Boolean Beef.

Console