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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <!doctype html>
<body>
  
  <div class="main">
    <h1>My Design Mock</h1>
    <p>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vitae augue nec justo viverra sagittis. Sed pellentesque et nunc at finibus.  <span class="highlight">This is important.</span> Praesent pharetra dui sollicitudin nisl hendrerit maximus imperdiet at libero. Duis sagittis felis ante, sed vehicula ex sagittis vitae. Class aptent taciti sociosqu <a href="#">ad litora torquent per conubia</a> nostra, per inceptos himenaeos. Phasellus molestie iaculis massa, at porttitor velit placerat vitae. Vivamus et ultrices quam, in maximus augue. Phasellus iaculis sapien tempor ipsum varius gravida. Suspendisse pretium eu ligula faucibus rutrum. Praesent pellentesque, nisl faucibus convallis tincidunt, arcu odio auctor nisl, a ultrices massa massa a arcu.
      </p>
    
    
    <div class = "panel">
      <div class="panel-left">
        <h2>Column Left Heading</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vitae augue nec justo viverra sagittis. Sed pellentesque et nunc at finibus. Praesent pharetra dui sollicitudin nisl <a href="#">hendrerit</a> maximus imperdiet at libero. Duis sagittis felis ante, sed vehicula ex sagittis vitae. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Phasellus molestie iaculis massa, at porttitor velit placerat <a href="#">vitae</a>. Vivamus et ultrices quam, in maximus augue. Phasellus iaculis sapien tempor ipsum varius gravida. Suspendisse pretium eu ligula faucibus rutrum. Praesent pellentesque, nisl faucibus convallis tincidunt, arcu odio auctor nisl, a ultrices massa massa a arcu.
        </p>
      </div>
      <div class="panel-right">
        <h3>My Reading List</h3>
        <div ng-app = "toDoMod" class="reading-list-app">
          <div ng-controller = "toDoCtrl">
            <div>
              <div class="book-list-item" ng-repeat = "item in readingList">
                <span class="book-title">{{ item }}</span> <a href="#" ng-click = "removeItem($event, item)" class="done-button">done</a>
              </div>
            </div>
            <form class="add-item-form" ng-submit = "addItem($event)" name="addItemForm">
              <div class="form-row">
              <input class="item-input" ng-model = "newItem" type = "text"/>
              <input class = "submit" type="submit" value = "add item">
            <div>
                                                                          </form>
          </div>
        </div>
      </div>
    </div>
  </div>
  
</body>

</html>
            
          
!

CSS

            
              $scarlet-color: rgb(209, 20, 86);
body {
  font-family: Helvetica, sans-serif;
  background-color: rgb(8, 89, 102);
  font-size: 13pt;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.highlight {
  background-color: $scarlet-color;
  color: rgb(249, 249, 249);
  font-weight: bold;
  padding-left: 1em;
  padding-right: 1em;
}
h1, h2, h3 {
  color: rgb(8, 89, 102);
  font-style: italic;
  font-family: Warnock, serif;
  border-bottom-style: solid;
  border-color: $scarlet-color;
}
h3 {
  font-size: 21pt;
}
h2 {
  font-size: 34pt;
}
h1 {
  font-size: 55pt;
  
  text-shadow: 2px 2px 2px rgb(190, 212, 224);
}
.main {
  background-color: rgb(249, 249, 249);
  width: 987px;
  padding-left: 34px;
  padding-right: 34px;
}
.panel {
  width: 987px;
  display: flex;
  border-color: rgb(8, 89, 102);
}
.panel-left {
  width: 610px;
  padding-right: 21px;
}
.panel-right {
  width: 377px;
}
a {
  color: rgb(28, 152, 168);
}
p {
  text-align: justify;
}

.reading-list-app {
 .add-item-form {
    margin-top: 13px;
   .form-row {

     .item-input {
        width: 100%;
       margin-bottom: 13px;
       color: rgb(8, 89, 102);
       padding-top:8px;
       padding-bottom: 8px;
       font-size: 13pt;
       font-weight: bold;
     }
     .submit {
      
     }
     
     .submit {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #44d8eb), color-stop(1, #117e8c));
	background:-moz-linear-gradient(top, #44d8eb 5%, #117e8c 100%);
	background:-webkit-linear-gradient(top, #44d8eb 5%, #117e8c 100%);
	background:-o-linear-gradient(top, #44d8eb 5%, #117e8c 100%);
	background:-ms-linear-gradient(top, #44d8eb 5%, #117e8c 100%);
	background:linear-gradient(to bottom, #44d8eb 5%, #117e8c 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#44d8eb', endColorstr='#117e8c',GradientType=0);
	background-color:#44d8eb;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #84bbf3;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	padding:6px 24px;
	text-decoration:none;
	text-shadow:0px 1px 0px #ffffff;
}
.submit:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #117e8c), color-stop(1, #44d8eb));
	background:-moz-linear-gradient(top, #117e8c 5%, #44d8eb 100%);
	background:-webkit-linear-gradient(top, #117e8c 5%, #44d8eb 100%);
	background:-o-linear-gradient(top, #117e8c 5%, #44d8eb 100%);
	background:-ms-linear-gradient(top, #117e8c 5%, #44d8eb 100%);
	background:linear-gradient(to bottom, #117e8c 5%, #44d8eb 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#117e8c', endColorstr='#44d8eb',GradientType=0);
	background-color:#117e8c;
}
.submit:active {
	position:relative;
	top:1px;
}

   }
 }
  .book-list-item:nth-child(odd) {
    // background-color: rgb(8, 137, 137);
    // color: white;
  }
.book-list-item {
  color: rgb(8, 89, 102);
  display: flex;
  flex-direction: row;
  font-weight: bold;
  border-bottom-style: solid;
  border-width: 1px;
  border-color: #034d72;
  padding-bottom: 13px;
  .book-title {
    flex-grow: 1;
    padding-right: 8px;
  }
  
  .done-button {
    align-self: flex-end;
    color: rgb(145, 39, 39);
    flex-grow: 0;
  }
}
}
            
          
!

JS

            
              angular.module("toDoMod",[])
.controller("toDoCtrl", function($scope) {
  $scope.newItem = "";
  $scope.readingList = [
    "Moby Dick",
    "The Old Man and the Sea",
    "Twenty Thousand Leagues Under the Sea"
  ]
  $scope.addItem = function(e) {
    e.preventDefault();
    $scope.readingList.push($scope.newItem);
    $scope.newItem = "";
    
  }
  $scope.removeItem = function(e, item) {
    e.preventDefault();
    let index = $scope.readingList.indexOf(item);
    $scope.readingList.splice(index,1);
  }
});
            
          
!
999px

Console