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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

HTML

              
                <header>
	<div class="wrap">
		<a href="index.html"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/19167/logo.svg" class="logo" alt="EdTech Academy"></a>
	</div>
	<div class="login">
		<div class="wrap">
			<p><a href="login.html">Login</a> or <a href="signup.html">Signup</a></p>
		</div>
	</div>
</header>
<nav>
	<div class="wrap">
		<ul>
			<li><a href="courses.html">Courses</a></li>
			<li><a href="instructors.html">Our Instructors</a></li>
			<li><a href="signup.html">Sign up</a></li>
		</ul>
	</div>
</nav>
<div id="hero">
	<div id="hero-inner" class="wrap">
		<h1 class="hero-title">Welcome to EdTech Academy</h1>
		<p>EdTech Academy is the web's best resource for educational technology professionals. Our world-reknowned <a href="instructors.html">instructors</a> will help you hone your skills and advance your career. From the creators of <a href="http://profpress.io">ProfPress</a>,
			the blog platform for academics.</p>
		<p><a href="signup.html" class="call-to-action">Get started today</a></p>
	</div>
</div>
<div class="courses">
	<div class="wrap">
		<h2>Featured Courses</h2>
		<div class="course-listing">
			<div class="course left survey">
				<a href="history.html"><h3 class="course-title">Foundations of Ed Tech<br><span class="tagline">A Historical Survey</span></h3></a>
			</div>
			<div class="course center business">
				<a href="business.html"><h3 class="course-title">Educational Entrepreneurship<br><span class="tagline">The Business of Learning</span></h3></a>
			</div>
			<div class="course right games">
				<a href="games.html"><h3 class="course-title">Seriously Fun<br><span class="tagline">Designing Learning Games</span></h3></a>
			</div>
			<div class="clear">
			</div>
		</div>
	</div>
</div>
<footer>
	<div class="wrap">
		<p>&copy;2016 EdTech Academy</p>
		<p><a href="contact.html">Contact Us</a>&nbsp;|&nbsp;<a href="contact.html">Careers</a>&nbsp;|&nbsp;<a href="about.html">About</a>&nbsp;|&nbsp;<a href="contact.html">Privacy</a>
	</div>
</footer>
              
            
!

CSS

              
                /*
Title: EdTech Academy Stylesheet
Author: Lucas Horton
*/

/** Fonts **/
@import url(https://fonts.googleapis.com/css?family=Lato:700,400,300|Bitter:400,700);

/** Body **/
body {
    font-family: Lato, Verdana, sans-serif;
    font-size: 62.5%;
    line-height: 1.4;
    color: #e0e0e0;
    background-color: #38435e;
}

/** Defaults **/
a {
    -webkit-transition: color .5s;
            transition: color .5s;
    text-decoration: none;
    color: #f59e03;
}

a:hover {
    text-decoration: none;
    color: #eb540a;
}


h2 {
    font-family: Bitter, Georgia, 'Times New Roman', serif;
    font-size: 3em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

/** Header **/
.logo {
    display: block;
    width: 320px;
    margin: 90px auto 60px auto;
}

.login {
    font-size: 1.4em;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    padding: .5em 0;
    text-align: right;
    color: #e0e0e0;
    background-color: #222;
}

/** Navigation **/
nav ul {
    width: 960px;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #fff;
}

nav ul > li {
    font-size: 1.8em;
    font-weight: 300;
    display: inline-block;
    padding: 0 2em;
}

nav ul > li a {
    text-transform: uppercase;
    color: #e0e0e0;
}

/** Hero **/
#hero {
    width: 100%;
    text-align: center;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/19167/hero.jpg) no-repeat center center;
    background-size: cover;
}

#hero-inner {
    padding: 150px 0;
}

.hero-title {
    font-family: Bitter, Georgia, 'Times New Roman', serif;
    font-size: 5em;
    font-weight: bold;
    margin: 0 100px;
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0,0,0,.8);
}

#hero p {
    font-size: 2em;
    margin: 20px 200px 0 200px;
    text-shadow: 1px 1px 3px rgba(0,0,0,.8);
}

.call-to-action {
    display: block;
    margin: 30px 100px 0;
    padding: .5em 1em;
    -webkit-transition: background-color .5s;
            transition: background-color .5s;
    text-transform: uppercase;
    color: #fff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
    background-color: #6bb26b;
    -webkit-box-shadow: 1px 1px 3px rgba(0,0,0,.8);
            box-shadow: 1px 1px 3px rgba(0,0,0,.8);
    text-shadow: none;
}

.call-to-action:hover {
    color: #fff;
    background-color: #528652;
}

/** Courses **/
.courses {
    padding: 60px 0;
    color: #38435e;
    background-color: #fff;
}

.course {
    position: relative;
    height: 200px;
    background-color: #333;
}

.course-title {
    font-size: 1.8em;
    line-height: 1.2;
    position: absolute;
    bottom: 0;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    width: 100%;
    padding: 20px;
    color: #f59e03;
    background-color: #222;
    background-color: rgba(34,34,34,.8);
}

.tagline {
    font-size: .8em;
    padding-top: .5em;
    color: #e0e0e0;
}

.survey {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/19167/survey.jpg) no-repeat center center;
}

.business {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/19167/business.jpg) no-repeat center center;
}

.games {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/19167/games.jpg) no-repeat center center;
}

/** Footer **/
footer {
    font-size: 1.4em;
    padding: 30px 0;
    color: #e0e0e0;
    background-color: #222;
}

/** Utility Classes **/
.wrap {
    width: 960px;
    margin: 0 auto;
}

.clear {
    clear: both;
}

.left {
    float: left;
    width: 300px;
}

.center {
    float: left;
    width: 300px;
    margin-left: 30px;
}

.right {
    float: right;
    width: 300px;
}
              
            
!

JS

              
                
              
            
!
999px

Console