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>

<html lang="en">
<head>
<title>Sea Books or Something</title>
</head>
<body>
    <nav class="navbar navbar-expand-sm my-navbar">
        <a class="navbar-brand" href="#">Sea Books or Something</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample03"
            aria-controls="navbarsExample03" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarsExample03">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">Link</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown03" data-toggle="dropdown"
                        aria-haspopup="true" aria-expanded="false">Dropdown</a>
                    <div class="dropdown-menu" aria-labelledby="dropdown03">
                        <a class="dropdown-item" href="#">Action</a>
                        <a class="dropdown-item" href="#">Another action</a>
                        <a class="dropdown-item" href="#">Something else here</a>
                    </div>
                </li>
            </ul>
            <form class="form-inline my-2 my-md-0">
                <input class="form-control" type="text" placeholder="Search">
            </form>
        </div>
    </nav>

    <div class="main container">
        <h1>Sea Books or Something</h1>

        <p>
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vitae augue nec justo viverra sagittis.
            Sed pellentesque et nunc at finibus raesent pharetra dui sollicitudin nisl hendrerit maximus imperdiet at
            libero.
        </p>
        <div class="row preview-row">
            <div class="col-sm-4">
                <a href="#" class="preview-card">
                  <h2 class="blurb-title">
                    Moby Dick
                  </h2>
                  <div>
                    <img width = "940" height="627" class="img-fluid img-responsive" src="https://adamcrossdotblog.files.wordpress.com/2019/06/whale.jpg"/>
                  </div>
                </a>
              
              </div>
              <div class="col-sm-4">
                <a href="#" class="preview-card">
                  <h2 class="blurb-title">
                    Twenty Thousand Leagues Under the Sea
                  </h2>
                  <div>
                    <img width = "1486" height="892" class="img-fluid img-responsive" src="https://adamcrossdotblog.files.wordpress.com/2019/06/virginia_class_submarine_6.jpg"/>
                  </div></a>
             </div>
            
            <div class="col-sm-4">
                <a href="#" class="preview-card">
                  <h2 class="blurb-title">
                    The Old Man and the Sea
                  </h2>
                    <div><img width = "1000" height="664" class="img-fluid img-responsive" src="https://adamcrossdotblog.files.wordpress.com/2019/06/marlin.jpg"/></div>
              </a>
            </div>
            
        </div>

        <div class="row">
            <div class="col-sm-8">
                <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="col-sm-4">
                <h3>My Reading List</h3>
                <div data-ng-app="toDoMod" class="reading-list-app">
                    <div data-ng-controller="toDoCtrl">
                        <div>
                            <div class="book-list-item" data-ng-repeat="item in readingList">
                                <span class="book-title">{{ item }}</span> <a href="#"
                                    data-ng-click="removeItem($event, item)" class="done-button">done</a>
                            </div>
                        </div>
                        <form class="add-item-form" data-ng-submit="addItem($event)" name="addItemForm">
                            <div class="form-row">
                                <input class="item-input form-control" data-ng-model="newItem" type="text" />
                                <input class="submit" type="submit" value="add item"/>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <footer>
        Copyright 2019 Adam Cross
    </footer>
</body>
</html>
            
          
!

CSS

            
              $scarlet-color: rgb(209, 20, 86);
$off-white-color: rgb(249, 249, 249);
$blue-green-base-color: rgb(8, 89, 102);
$deep-neutral-blue: rgb(64, 77, 96);
body {
  font-family: Helvetica, sans-serif;
  background-color: $off-white-color;
  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;
}
h3 {
  font-size: 21pt;
}
h2 {
  font-size: 34pt;
}
h1 {
  font-size: 55pt;

  text-shadow: 2px 2px 2px rgb(190, 212, 224);
}
.preview-row {
  margin-bottom: 1em;
  align-items: stretch;

  .preview-card {
    height: 100%;
    background-color: $scarlet-color;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: $off-white-color;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 5px;
    box-shadow: 1px 1px 5px $deep-neutral-blue;
    text-align: justify;
    &:hover {
      text-decoration: none;
      box-shadow: 3px 3px 8px $deep-neutral-blue;
    }
    &:nth-child(2) {
      margin-left: 1em;
    }
    img {
      align-self:center;
      border-style: solid;
      border-width: 1px;
      border-color: $deep-neutral-blue;
      box-shadow: 1px 1px 4px $deep-neutral-blue;
      border-radius: 4px;
    }
    h2.blurb-title {
      color: $off-white-color;
      font-size: 150%;
      text-align: left;
    }
    
  }

  .preview-card {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#d11456+0,f21885+100 */
    background: #d11456; /* Old browsers */
    background: -moz-linear-gradient(
      -45deg,
      #d11456 0%,
      #f21885 100%
    ); /* FF3.6-15 */
    background: -webkit-linear-gradient(
      -45deg,
      #d11456 0%,
      #f21885 100%
    ); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(
      135deg,
      #d11456 0%,
      #f21885 100%
    ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(
        startColorstr="#d11456",
        endColorstr="#f21885",
        GradientType=1
      ); /* IE6-9 fallback on horizontal gradient */
  }
}

.main {
  background-color: rgb(249, 249, 249);
  padding-left: 34px;
  padding-right: 34px;
  padding-bottom: 34px;
  margin-bottom: 34px;
  margin-top: 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;
    }
  }
}
nav.my-navbar {
  width: 100%;
   background-color: $deep-neutral-blue;
  a {
    color: $off-white-color
      
  }
  .nav-item.active {
    a {
      border-bottom-style: solid;
      border-color: $scarlet-color;
    }
  }
  .dropdown-menu {
     background-color: $deep-neutral-blue;
  }
}
footer {
  text-align: center;
  border-top-style: solid;
  border-width: 1px;
  border-top-color: $deep-neutral-blue;
  width: 100%;
  padding-top:1em;
  margin-bottom: 2em;
}

img.img-fluid.img-responsive {
  max-width: 100%;
  height: auto;
}
.blurb-title {
  
}
            
          
!

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