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

              
                .header
	.container
		h1 Innovation Cloud
		p
			| Connect your ideas globally
		a.btn(href='#') Learn More
.nav
	.container
		ul
			li Register
			li Schedule
			li Sponsors
			li About
			li Contact
.main
	.container
		img(src='https://s3.amazonaws.com/codecademy-content/projects/innovation-cloud/cloud.svg' height='128' width='196')
		h2 The Innovation Cloud Conference
		p
			| Connect with the best minds across a wide range of industries to share ideas and brainstorm new solutions to challenging problems.
		p
			| Hear industry leaders talk about what worked (and what didn't) so that you can save time on your most challenging projects.
		p
			| Learn about the latest research and technologies that you can use immediately to invent the future.
.jumbotron
	.container
		h2 Stay Connected
		p
			| Receive weekly insights from industry insiders.
		a.btn(href='#') Join
.footer
	.container
		p
			| &copy; Innovation Cloud Conference
              
            
!

CSS

              
                html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Roboto', sans-serif;
	font-weight: 100;
}

.container {
	margin: 0 auto;
	max-width: 940px;
	padding: 0 10px;
}

.header {
	background: url(http://s3.amazonaws.com/codecademy-content/projects/innovation-cloud/bg.jpg) no-repeat center center;
	background-size: cover;
	height: 800px;
	text-align: center;
}

.header .container {
	position: relative;
	top: 200px;
}

.header h1 {
	color: #fff;
	line-height: 100px;
	font-size: 80px;
	margin-top: 0;
	margin-bottom: 80px;
	text-transform: uppercase;
}

@media (min-width: 850px) {
	.header h1 {
		font-size: 120px;
	}
}

.header p {
	color: #fff;
	font-weight: 500;
	letter-spacing: 8px;
	margin-bottom: 40px;
	margin-top: 0;
	text-transform: uppercase;
}

.btn {
	color: #fff;
	background: #000;
	padding: 10px 40px;
	text-decoration: none;
	transition: background .5s;
}

.nav {
	background: #000;
	height: 80px;
	width: 100%;
}

.nav ul {
	height: 80px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
}

.nav ul li {
	color: #fff;
	display: inline-block;
	height: 80px;
	line-height: 80px;
	list-style: none;
	padding: 0 10px;
	transition: background .5s;
}

.btn:hover,
.nav ul li:hover {
	background: #117bff;
	cursor: pointer;
	transition: background .5s;
}

.main .container {
	margin: 80px auto;
}

.main img {
	float: left;
	margin: 50px 80px 50px 0;
}

.jumbotron {
	background: url(http://s3.amazonaws.com/codecademy-content/projects/innovation-cloud/jumbotron_bg.jpg) center center;
	background-size: cover;
	height: 600px;
}

.jumbotron .container {
	position: relative;
	top: 220px;
}

.jumbotron h2 {
	color: #fff;
	text-align: right;
}

.jumbotron p {
	color: #fff;
	text-align: right;
}

.jumbotron .btn {
	margin: 10px 0 0;
	float: right;
}

.footer {
	background: #000;
	height: 80px;
	padding-bottom: 50px;
}

.footer p {
	color: #fff;
	font-size: 14px;
	height: 80px;
	line-height: 80px;
	margin: 0;
}

@media (max-width: 500px) {
	.header h1 {
		font-size: 50px;
		line-height: 64px;
	}
	
	.main,
	.jumbotron {
		padding: 0 30px;
	}
	
	.main img {
		width: 100%;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console