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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <nav id="main-nav" class="navbar navbar-toggleable-md navbar-inverse fixed-top">
  <div class="container">
    <a class="navbar-brand" href="#">popshift</a>
    <button class="navbar-toggler float-right" type="button" data-toggle="collapse" data-target="#nav-links" aria-controls="nav-links" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="nav-links">
      <ul class="navbar-nav ml-auto">
        <li class="nav-item">
          <a class="nav-link" href="#about">About</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#projects">Projects</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#contact">Contact</a>
        </li>
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="social-dd" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Social</a>
          <div class="dropdown-menu dropdown-menu-right" aria-labelledby="social-dd">
            <a class="dropdown-item" href="https://github.com/popshift" target="_blank"><i class="fa fa-github"></i>&nbsp;GitHub</a>
            <a class="dropdown-item" href="https://www.linkedin.com/in/matt-shultz-85605ba6" target="_blank"><i class="fa fa-linkedin"></i>&nbsp;LinkedIn</a>
            <a class="dropdown-item" href="https://codepen.io/popshift" target="_blank"><i class="fa fa-codepen"></i>&nbsp;CodePen</a>
          </div>
        </li>
      </ul>
    </div>
  </div>
</nav>

<section id="about" class="jumbotron">
  <div class="container">
    <div class="row">
      <div class="col-md-4 col-sm-3 col-xs-12">
        <img class="img-fluid profile-image" src="https://popshift.net/public_assets/images/profile_square.jpg">
      </div>
      <div class="col-md-8 col-sm-9 col-xs-12">
        <h1 class="jumbotron-heading">Hi, I'm Matt Shultz</h1>
        <p class="lead">I'm a part-time developer and full-time solver. I love building solutions for real-world problems. I have professional experience in web design, graphic design, network/server architecture, and project management. I've challenged myself to become a proficient, full-time JavaScript developer by December 2018.</p>
      </div>
    </div> <!-- /row -->
  </div> <!-- /container -->
</section> <!-- /jumbotron -->


<div id="projects" class="album">
  <div class="container">
    <div class="row">
      <div class="col-xs-12 col-sm-6 col-md-4">
        <div class="card">
          <img class="img-fluid" src="https://via.placeholder.com/356x250" alt="Project 1 Thumbnail">
          <p class="card-text">Project 1</p>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <div class="card">
          <img class="img-fluid" src="https://via.placeholder.com/356x250" alt="Project 2 Thumbnail">
          <p class="card-text">Project 2</p>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <div class="card">
          <img class="img-fluid" src="https://via.placeholder.com/356x250" alt="Project 3 Thumbnail">
          <p class="card-text">Project 3</p>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <div class="card">
          <img class="img-fluid" src="https://via.placeholder.com/356x250" alt="Project 4 Thumbnail">
          <p class="card-text">Project 4</p>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <div class="card">
          <img class="img-fluid" src="https://via.placeholder.com/356x250" alt="Project 5 Thumbnail">
          <p class="card-text">Project 5</p>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <div class="card">
          <img class="img-fluid" src="https://via.placeholder.com/356x250" alt="Project 6 Thumbnail">
          <p class="card-text">Project 6</p>
        </div>
      </div>
    </div> <!-- /row -->
  </div>
</div>

<div id="contact">
  <div class="container">
    <div class="row">
      <div class="col-12">
        <h2 class="text-center">Let's Talk</h2>
      </div>
      <div class="col-xs-12 col-md-6 mb-4">
        <p>
          If you like my work and would like to discuss your next project, feel free to send me a message.
        </p>
        <p>
          Please, include any details you can about your project. I'll respond as soon as possible.
        </p>
        <p>If you prefer, you can contact me via one of my social media channels below.
        </p>
        <div class="row">
          <div class="col-4">
            <a href="https://github.com/popshift" target="_blank">
              <button class="btn btn-md btn-block btn-social btn-github">
                <span class="fa fa-github"></span> GitHub
              </button>
            </a>
          </div>
          <div class="col-4">
            <a href="https://www.linkedin.com/in/matt-shultz-85605ba6" target="_blank">
            <button class="btn btn-md btn-block btn-social btn-linkedin">
              <span class="fa fa-linkedin"></span> LinkedIn
            </button>
            </a>
          </div>
          <div class="col-4">
            <a href="https://codepen.io/popshift" target="_blank">
            <button class="btn btn-md btn-block btn-social btn-github">
              <span class="fa fa-codepen"></span> CodePen
            </button>
            </a>
          </div>
        </div>
      </div>
      <div class="col-xs-12 col-md-6">
        
        <div class="form-group row">
          <label for="name-input" class="col-3 col-form-label text-right">Name</label>
          <div class="col-9">
            <input class="form-control" type="text" placeholder="Your name" id="name-input">
          </div>
        </div>
        
        <div class="form-group row">
          <label for="email-input" class="col-3 col-form-label text-right">Email</label>
          <div class="col-9">
            <input class="form-control" type="text" placeholder="Your email address" id="email-input">
          </div>
        </div>
        
        <div class="form-group row">
          <label for="subject-input" class="col-3 col-form-label text-right">Subject</label>
          <div class="col-9">
            <input class="form-control" type="text" placeholder="Subject" id="subject-input">
          </div>
        </div>
        
        <div class="form-group row">
          <label for="message-input" class="col-3 col-form-label text-right">Message</label>
          <div class="col-9">
            <textarea class="form-control" rows="3" id="message-input"></textarea>
          </div>
        </div>
        <button class="float-right btn btn-primary" type="submit">Send Message</button>
        
        
      </div>
    </div>
  </div>
</div>

    <footer class="text-muted">
      <div class="container">
        <p class="float-right">
          <a href="#">Back to top</a>
        </p>
        <p>&copy; Copyright 2017 | Matt Shultz (popshift) | All Rights Reserved</p>
      </div>
    </footer>


<!-- Load jQuery first, then Tether, then Bootstrap JS. -->
<script
  src="https://code.jquery.com/jquery-3.2.1.min.js"
  integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
  crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
              
            
!

CSS

              
                body {
  background: #1e1e20;
}
a, a:hover {
  text-decoration: none;
}
.profile-image {
  border: 10px solid white;
  border-radius: 50%;
  max-height: 250px;
}
.navbar {
  margin-bottom: 0;
  background-color: #1e1e20;
}
.jumbotron {
  padding-top: 5rem;
  padding-bottom: 5rem;
  margin-bottom: 0;
  margin-top: 3.4rem;
  background-color: #16ade3;
  background-image: url(https://popshift.net/public_assets/images/blue_vignette.jpg);
  background-size: auto 100%;
  color: white;
  border-radius: 0;
}
.jumbotron p:last-child {
  margin-bottom: 0;
}
.jumbotron-heading {
  font-weight: 300;
}
.album {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.card {
  padding: .75rem;
  margin-bottom: 2rem;
  border: 0;
  background: #313131;
  color: #ccc;
}

.card > img {
  margin-bottom: .75rem;
}

.card-text {
  font-size: 85%;
}

#contact {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #313131;
  color: #ccc;
}

#contact h2 {
  margin-bottom: 50px;
}

footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

footer p {
  margin-bottom: .25rem;
}

.btn-social{position:relative;padding-left:44px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn-social :first-child{position:absolute;left:0;top:0;bottom:0;width:32px;line-height:38px;font-size:1.3em;text-align:center;border-right:1px solid rgba(0,0,0,0.2)}
.btn-social.btn-lg{padding-left:61px}.btn-social.btn-lg :first-child{line-height:45px;width:45px;font-size:1.8em}
.btn-social.btn-sm{padding-left:38px}.btn-social.btn-sm :first-child{line-height:28px;width:28px;font-size:1.4em}
.btn-social.btn-xs{padding-left:30px}.btn-social.btn-xs :first-child{line-height:20px;width:20px;font-size:1.2em}
.btn-social-icon{position:relative;padding-left:44px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:34px;width:34px;padding-left:0;padding-right:0}.btn-social-icon :first-child{position:absolute;left:0;top:0;bottom:0;width:32px;line-height:34px;font-size:1.2em;text-align:center;border-right:1px solid rgba(0,0,0,0.2)}
.btn-social-icon.btn-lg{padding-left:61px}.btn-social-icon.btn-lg :first-child{line-height:45px;width:45px;font-size:1.8em}
.btn-social-icon.btn-sm{padding-left:38px}.btn-social-icon.btn-sm :first-child{line-height:28px;width:28px;font-size:1.4em}
.btn-social-icon.btn-xs{padding-left:30px}.btn-social-icon.btn-xs :first-child{line-height:20px;width:20px;font-size:1.2em}
.btn-social-icon :first-child{border:none;text-align:center;width:100% !important}
.btn-social-icon.btn-lg{height:45px;width:45px;padding-left:0;padding-right:0}
.btn-social-icon.btn-sm{height:30px;width:30px;padding-left:0;padding-right:0}
.btn-social-icon.btn-xs{height:22px;width:22px;padding-left:0;padding-right:0}
.btn-github{color:#fff;background-color:#444;border-color:rgba(0,0,0,0.2)}.btn-github:hover,.btn-github:focus,.btn-github:active,.btn-github.active,.open .dropdown-toggle.btn-github{color:#fff;background-color:#303030;border-color:rgba(0,0,0,0.2)}
.btn-github:active,.btn-github.active,.open .dropdown-toggle.btn-github{background-image:none}
.btn-github.disabled,.btn-github[disabled],fieldset[disabled] .btn-github,.btn-github.disabled:hover,.btn-github[disabled]:hover,fieldset[disabled] .btn-github:hover,.btn-github.disabled:focus,.btn-github[disabled]:focus,fieldset[disabled] .btn-github:focus,.btn-github.disabled:active,.btn-github[disabled]:active,fieldset[disabled] .btn-github:active,.btn-github.disabled.active,.btn-github[disabled].active,fieldset[disabled] .btn-github.active{background-color:#444;border-color:rgba(0,0,0,0.2)}
.btn-linkedin{color:#fff;background-color:#007bb6;border-color:rgba(0,0,0,0.2)}.btn-linkedin:hover,.btn-linkedin:focus,.btn-linkedin:active,.btn-linkedin.active,.open .dropdown-toggle.btn-linkedin{color:#fff;background-color:#005f8d;border-color:rgba(0,0,0,0.2)}
.btn-linkedin:active,.btn-linkedin.active,.open .dropdown-toggle.btn-linkedin{background-image:none}
.btn-linkedin.disabled,.btn-linkedin[disabled],fieldset[disabled] .btn-linkedin,.btn-linkedin.disabled:hover,.btn-linkedin[disabled]:hover,fieldset[disabled] .btn-linkedin:hover,.btn-linkedin.disabled:focus,.btn-linkedin[disabled]:focus,fieldset[disabled] .btn-linkedin:focus,.btn-linkedin.disabled:active,.btn-linkedin[disabled]:active,fieldset[disabled] .btn-linkedin:active,.btn-linkedin.disabled.active,.btn-linkedin[disabled].active,fieldset[disabled] .btn-linkedin.active{background-color:#007bb6;border-color:rgba(0,0,0,0.2)}
.btn-twitter{color:#fff;background-color:#2ba9e1;border-color:rgba(0,0,0,0.2)}.btn-twitter:hover,.btn-twitter:focus,.btn-twitter:active,.btn-twitter.active,.open .dropdown-toggle.btn-twitter{color:#fff;background-color:#1c92c7;border-color:rgba(0,0,0,0.2)}
.btn-twitter:active,.btn-twitter.active,.open .dropdown-toggle.btn-twitter{background-image:none}
.btn-twitter.disabled,.btn-twitter[disabled],fieldset[disabled] .btn-twitter,.btn-twitter.disabled:hover,.btn-twitter[disabled]:hover,fieldset[disabled] .btn-twitter:hover,.btn-twitter.disabled:focus,.btn-twitter[disabled]:focus,fieldset[disabled] .btn-twitter:focus,.btn-twitter.disabled:active,.btn-twitter[disabled]:active,fieldset[disabled] .btn-twitter:active,.btn-twitter.disabled.active,.btn-twitter[disabled].active,fieldset[disabled] .btn-twitter.active{background-color:#2ba9e1;border-color:rgba(0,0,0,0.2)}


              
            
!

JS

              
                $('body').scrollspy({
  target: '#main-nav',
  offset: 56
});

// Add smooth scrolling on all links inside the navbar
$("#main-nav a").on('click', function(event) {

  // Make sure this.hash has a value before overriding default behavior
  if (this.hash !== "") {

    // Prevent default anchor click behavior
    event.preventDefault();

    // Store hash
    var hash = this.hash;

    // Using jQuery's animate() method to add smooth page scroll
    // The optional number (400) specifies the number of milliseconds it takes to scroll to the specified area
    $('html, body').animate({
      scrollTop: $(hash).offset().top
    }, 400, function(){

    // Add hash (#) to URL when done scrolling (default click behavior)
      window.location.hash = hash;
    });

  } // End if

});
              
            
!
999px

Console