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

              
                <div class="container" ng-app="ProfPressApp" ng-controller="PostCtrl">
	<header>
		<h1>ProfPress
        <small>the blog platform for academics</small></h1>
	</header>
	<h2>Latest posts</h2>
	<div class="posts">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">Just Build Websites</h3>
			</div>
			<div class="panel-body">
				<p>Good advice for beginning web designers: <a href="http://justbuildwebsites.com/">Just Build Websites</a>
				</p>
			</div>
			<div class="panel-footer">Posted by Prof Proferson on January 27</div>
		</div>
		<div class="panel panel-default" ng-repeat="post in posts">
			<div class="panel-heading">
				<h3 class="panel-title">{{post.title}}</h3>
			</div>
			<div class="panel-body">
				<p>{{post.text}}</p>
			</div>
			<div class="panel-footer">Posted by {{post.author}} on {{post.date}}</div>
		</div>
	</div>
	<hr>
	<h2>New Post</h2>
	<div class="post-form well">
		<h3>Instructions</h3>
		<ol>
			<li>Come up with an idea</li>
			<li>Write it up using this form</li>
			<li>Share your idea with the academic community and become famous</li>
		</ol>
		<form>
			<div class="form-group form-group-lg">
				<label for="post-title" class="control-label">Title</label>
				<input type="text" class="form-control input-lg" id="post-title" placeholder="Enter a title" ng-model="post.title">
			</div>
			<div class="form-group form-group-lg">
				<label for="post-text" class="control-label" rows="10">Post</label>
				<textarea class="form-control" id="post-text" ng-model="post.text" placeholder="Enter your post" rows="5"></textarea>
			</div>
			<div class="form-group form-group-lg">
				<label for="post-author" class="control-label">Author</label>
				<input type="text" class="form-control input-lg" id="post-author" placeholder="Enter author name" ng-model="post.author">
			</div>
			<button type="submit" class="btn btn-primary btn-lg" ng-click="add()">Post it!</button>
		</form>
	</div>
	<footer>
		<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/19167/logo.png" alt="The University of Texas at Austin" class="logo" />
	</footer>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Lobster);
html {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/19167/background.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
body {
    background: none;
}
header {
    margin: 40px 0 60px;
}
h1 {
    font-family: Lobster;
    color: #bf5700;
    font-size: 5em;
}
h1 small {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    color: #555;
    font-weight: 200;
}
h2 {
    text-transform: uppercase;
    color: #005F86;
    font-weight: 100;
    font-size:3em;
    margin-top: 50px;
    margin-bottom: 20px;
}
h3.panel-title {
    font-size: 2em;
    font-weight: 200;
    color: #F5F4F0;
}
.panel-footer {
    text-align: right;
    color: #bf5700;
    font-style: italic;
}
.container {
    margin: 30px auto;
    padding: 0 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, .5);
}
footer {
    text-align: center;
}
img.logo {
    width: 180px;
    height: 79px;
}
.posts .panel {
    margin-bottom: 40px;
}
.panel-default {
    border-color: #bf5700
}
.panel-default>.panel-heading {
    background-color: #bf5700;
    color: #fff;
    border-color: #bf5700;
}
.panel-default>.panel-footer {
    border-top-color: #bf5700;
    background-color: #F5F4F0;
}
#post-text {
    min-height: 100px;
}
footer {
    margin: 40px 0;
}
.well {
    border-color: #bf5700;
    background-color: #F5F4F0;
    box-shadow: none;
}

              
            
!

JS

              
                var profPressApp = angular.module('ProfPressApp', []);

profPressApp.controller('PostCtrl', function($scope) {
	$scope.posts = [];
	$scope.post;

	$scope.add = function() {
		var today = new Date();
		var dd = today.getDate();
		var mm = today.getMonth();
		var monthNames = ["January", "February", "March", "April", "May", "June",
			"July", "August", "September", "October", "November", "December"
		];
		$scope.post.date = monthNames[mm] + ' ' + dd;
		$scope.posts.push(angular.copy($scope.post));
		$scope.post = {};
	}
});
              
            
!
999px

Console