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

              
                <link href="https://fonts.googleapis.com/css?family=Lobster|Quicksand" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.4/css/all.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />

<div id="menu"> 
  <div id="navBar">
    <a href="#" onclick="return false">
      <span id="title">Drew's <span id="titleP">Portfolio</span></span>
    </a>
    <div id="navButtons">
      <a href="#" onclick="return false;"><span id="navAbout">About</span></a>
      <a href="#" onclick="return false;"><span id="navWorks">Works</span></a>
      <a href="#" onclick="return false;"><span id="navContact">Contact</span></a>
    </div>
  </div>
  <div id="navBarExtrude"></div>
</div>
<center>
  <div id="container">
    <div class="jumbotron">
      <h1 id="about"><span id="section">What I'm</span> <strong style="color: white">About.</strong></h1>
      <p style="color: white">My name's Drew. I'm 19, I and I like to meddle with programming. I've taken a programming course for one year, and I'm hoping to delve into a future with it. I've learned front-end development, such as html, css, and jquery. I've also learned back-end, namely Java.</p>
      <p style="color: white">I also am skilled in Graphic Design and Video Production, as I've taken them both as extra-curricular courses for two years.</p>
      <img id="icon" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1691032/profile/profile-512.jpg?1515984344">
      <div id="divider"></div>
      <h1 id="works"><span id="section">In the</span> <strong style="color: white">Works.</strong></h1>
      <h2 style="color: white">Websites:</h2>
      <div id="well1" class="well">
        <a target="_blank" href="https://codepen.io/drewH/full/XVBedr/"><img src="https://i.imgur.com/eR6CgQA.png"></a>
        <span id="caption">Tribute Page</span>
      </div>
      <div id="well2" class="well">
        <a href="pumpkin-yt.neocities.org"><img src="https://i.imgur.com/tUvnFIT.png"></a>
        <span id="caption">Website</span>
      </div>
      <div id="divider"></div>
      <div id="contactMe">
        <h1 id="sectionHeader"><strong style="color: white">Contact</strong><span id="section"> me.</span></h1>
        <div id="form">
          <form action="mailto:drewhedgecoke7@gmail.com">
            <textarea placeholder="Type your message here." class="form-control" id="paragraphBox" name="paragraph_text" cols="50" rows="5" required></textarea>
            <input class="form-control" type="email" cols="50" placeholder="example@gmail.com" name="Enter your email." required>
            <button id="submit" type="submit" class="btn btn-success block">Submit <span class="fa fa-paper-plane"></span></button>
          </form>
        </div>
      </div>
    </div>
    <div id="footerBg">
      <a target="_blank" href="https://codepen.io/drewH/"><i id="codePen" class="fab fa-codepen fa-3x"></i></a>
      <a target="_blank" href="https://www.freecodecamp.org/drew-1"><i id="fcc" class="fab fa-free-code-camp fa-3x"></i></a>
      <a target="_blank" href="https://github.com/drew-1"><i id="git" class="fab fa-github fa-3x"></i></a>
    </div>
  </div>
</center>
              
            
!

CSS

              
                /* DESKTOP */

  body {
    background: url("https://static.pexels.com/photos/55787/pexels-photo-55787.jpeg") center no-repeat;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    height: 100%;
  }

  /* navigation bar ↓ */

  #menu {
    position: fixed;
    top: 0%;
    left: 0%;
    right: 0%;
    -webkit-box-shadow: 0px 10px 30px -5px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 10px 30px -5px rgba(0,0,0,0.75);
    box-shadow: 0px 10px 30px -5px rgba(0,0,0,0.75);
  }

  #navAbout {
    padding-top: 3em;
    padding-bottom: 0.9em;
    padding-left: 1.06em;
    padding-right: 1.06em;
    width: 2em;
    color: white;
    font-size: 1.5em;
    font-family: Quicksand, Arial;
    display: inline;
  }

  #navAbout:hover {
    background-color: #ff8219;
  }

  #navBar {
    background-color: #ff7700;
    height: 5em;
    width: 100%;
  }

  #navBarExtrude {
    background-color: #ba5600;
    height: 0.5em;
    width: 100%;
  }

  #navButtons {
    background-color: #d66300;
    width: 30%;
    padding-top: 3em;
    padding-bottom: 1.54em;
    display: inline;
  }

  #navContact {
    padding-top: 3em;
    padding-bottom: 0.9em;
    padding-left: 1.06em;
    padding-right: 1.06em;
    width: 2em;
    color: white;
    font-size: 1.5em;
    font-family: Quicksand, Arial;
    display: inline;
  }

  #navContact:hover {
    background-color: #ff8219;
  }

  #navWorks {
    padding-top: 3em;
    padding-bottom: 0.9em;
    padding-left: 1.06em;
    padding-right: 1.06em;
    width: 2em;
    color: white;
    font-size: 1.5em;
    font-family: Quicksand, Arial;
    display: inline;
  }

  #navWorks:hover {
    background-color: #ff8219;
  }

  #title {
    display: inline;
    font-family: Lobster, Impact;
    color: white;
    font-size: 3em;
    margin-left: 1em;
    margin-top: 0.5em;
    margin-right: 4em;
    text-shadow: 0px 3px 7px rgba(0, 0, 0, 1);
  }

  #titleP {
    color: silver;
  }

  /* main section of page ↓ */

  .jumbotron {
    background: rgba(0,0,0,0.5);
    margin-top: 10em;
    width: 60%;
    margin-bottom: 4.5em;
  }

  #divider {
    background-color: silver;
    height: 0.15em;
    width: 80%;
    margin-top: 10em;
    margin-bottom: 10em;
  }

  #section {
    color: silver;
  }

  #icon {
    border-color: black;
    border-width: 5px;
    border-radius: 100%;
    -webkit-box-shadow: 10px 10px 58px -4px rgba(0,0,0,1);
    -moz-box-shadow: 10px 10px 58px -4px rgba(0,0,0,1);
    box-shadow: 10px 10px 58px -4px rgba(0,0,0,1);
    height: 25%;
    width: 25%;
  }

  #caption {
    font-size: 1em;
    margin-bottom: -2em;
  }

  .well {
    height: 3%;
    width: 25%;
  }

  #well1 {
    display: inline-block;
  }

  #well2 {
    display: inline-block;
  }

  #sectionHeader {
    margin-bottom: 1em;
  }

  #form {
    width: 60%;
  }

  #paragraphBox {
    display: block;
  }

  #submit {
    margin-top: 0.3em;
    width: 30%;
  }

  #footerBg {
    width: 100%;
    height: 5em;
    background: rgba(0,0,0,0.5);
  }

  #fcc {
    color: white;
    margin-top: 0.3em;
    margin-left: 0.25em;
    margin-right: 0.25em;
  }

  #fcc:hover {
    color: #39ad00;
  }

  #git {
    color: white;
    margin-top: 0.3em;
    margin-left: 0.25em;
    margin-right: 0.25em;
  }

  #git:hover {
    color: blue;
  }

  #codePen {
    color: white;
    margin-top: 0.3em;
    margin-left: 0.25em;
    margin-right: 0.25em;
  }

  #codePen:hover {
    color: orange;
  }

  /* general element selectors ↓ */

  h1 {
    color: white;
    opacity: 100%;
    font-family: Quicksand;
  }

  a, a:hover, a:active, a:visited, a:focus {
      text-decoration: none;
  }

  img {
    width: 240px;
    height: 135px;
    display: block;
  }

  .well:hover {
    -webkit-box-shadow: 10px 10px 82px -6px rgba(0,0,0,1);
    -moz-box-shadow: 10px 10px 82px -6px rgba(0,0,0,1);
    box-shadow: 10px 10px 82px -6px rgba(0,0,0,1);
  }

  p {
    text-align: left;
    margin-left: 2em;
    margin-right: 2em;
  }

/* MOBILE PORTRAIT */


              
            
!

JS

              
                $(document).ready(function() {
  $("#navAbout").click(function() {
    $(this).fadeOut("fast");
    $(this).fadeIn("fast");
    $('html, body').animate({
        scrollTop: $("#about").offset().top -100
    }, 500);
  });
  $("#navWorks").click(function() {
    $(this).fadeOut("fast");
    $(this).fadeIn("fast");
    $('html, body').animate({
        scrollTop: $("#works").offset().top -100
    }, 500);
  });
  $("#navContact").click(function() {
    $(this).fadeOut("fast");
    $(this).fadeIn("fast");
    $('html, body').animate({
        scrollTop: $("#sectionHeader").offset().top -100
    }, 500);
  });
});
              
            
!
999px

Console