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

              
                <!-- Smooth scrolling based on https://codepen.io/mattsince87/pen/exByn -->

<nav class="nav navbar navbar-fixed-top">
  <div class="padded">
    <ul>
      <li class="active"><a id="link1" class="nav-section1" href="#section1">About</a></li>
      <li><a id="link2" class="nav-section2" href="#section2">Portfolio</a></li>
      <li><a id="link3" class="nav-section3" href="#section3">Contact</a></li>
    </ul>
  </div>
</nav>


<div class="container-fluid">

  <!-- About me row -->
  <div class="row">
    <h1 id="section1"></h1>

    <!-- 3 Roles -->
    <div class="col-xs-12 col-md-4 col-lg-3 col-lg-offset-1 roles">
      <h3>Project Manager</h3>
      <h3>Teacher</h3>
      <h3>Software Engineer</h3>
    </div>

    <!-- Photo -->
    <div class="col-xs-6 col-md-4 col-lg-3">

      <img class="photo img-responsive center-block" src="https://dl.dropboxusercontent.com/u/5025187/photo.png" alt="Photo of Steve Cayouette">

    </div>

    <!-- Short description -->
    <div class="col-xs-12 col-md-4 col-lg-3 short-description">
      <p>Computer engineer experienced in training, personnel management and project management. Bilingual, demonstrates leadership and has a great capacity to adapt. Manifests a strong interest in online training and methods of mixed education.</p>
    </div>
  </div>
  <div class="row portfolio">
    <h1 id="section2"></h1>
    <div class="col-xs-12 col-md-4 col-lg-3 col-lg-offset-1">
      <div class="thumbnail">
        <img class="img-responsive" src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Nobel_Prize_2009-Press_Conference_KVA-23.jpg/800px-Nobel_Prize_2009-Press_Conference_KVA-23.jpg" alt="Photo of Dr. Willard Boyle">
        <div class="caption text-center">Willard Sterling Boyle was a Canadian physicist and co-inventor of the charge-coupled device.</div>
      </div>
    </div>
    <div class="col-xs-12 col-md-4 col-lg-3">
      <div class="thumbnail">
        <img class="img-responsive" src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Nobel_Prize_2009-Press_Conference_KVA-23.jpg/800px-Nobel_Prize_2009-Press_Conference_KVA-23.jpg" alt="Photo of Dr. Willard Boyle">
        <div class="caption text-center">Willard Sterling Boyle was a Canadian physicist and co-inventor of the charge-coupled device.</div>
      </div>
    </div>
    <div class="col-xs-12 col-md-4 col-lg-3">
      <div class="thumbnail">
        <img class="img-responsive" src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Nobel_Prize_2009-Press_Conference_KVA-23.jpg/800px-Nobel_Prize_2009-Press_Conference_KVA-23.jpg" alt="Photo of Dr. Willard Boyle">
        <div class="caption text-center">Willard Sterling Boyle was a Canadian physicist and co-inventor of the charge-coupled device.</div>
      </div>
    </div>
  </div>
  <div class="contact">
    <div class="row">
      <div class="col-xs-12 col-md-4 col-lg-3 col-lg-offset-1">
        <h1 id="section3">Contact Me</h1>
      </div>
    </div>
    <div class="row">

      <div class="col-xs-12 col-md-4 col-lg-3 col-lg-offset-1">
        <input class="contact-form" type="text" placeholder="Name" id="name">
      </div>
      <div class="col-xs-12 col-md-4 col-lg-3">
        <input class="contact-form" type="text" placeholder="Email" id="email">
      </div>
    </div>
    
    <div class="row">
      <div class="col-xs-12 col-md-8 col-lg-6 col-lg-offset-1">
        <textarea class="contact-form" placeholder="Message" id="message"></textarea>
      </div>
      <div class="col-xs-12 col-md-4 col-lg-3">
        <button type="submit">Send</button>
      </div>
    </div>
  </div>
</div>

<div class="footer">
 
  <a href="https://codepen.io/cayou99/"><img class="ddd" src="https://blog.codepen.io/wp-content/uploads/2012/06/Button-Black-Large.png" alt="Codepen logo" height="40" width="40"></a>
  
</div>
              
            
!

CSS

              
                html, body {
  background: #fff;
  padding: 40px 15px;
  color: #777;
}

h1 {
  color: #0b3c49;
}


a {
  color: #f46830; 
  &:hover {
    color: #4fb3e8;
    -webkit-transition: all .1s ease-in-out;
       -moz-transition: all .1s ease-in-out;
        -ms-transition: all .1s ease-in-out;
         -o-transition: all .1s ease-in-out;
            transition: all .1s ease-in-out;
  }
  text-decoration: none;
}

nav {
  background: #0b3c49;
  position: fixed;
}

  nav .padded {
    padding: 12px;
}

ul {
  float: left;
  text-align: right;
  width: 100%;
  margin: 0 0 12px 0; /*Padding Fix*/
  padding: 0;
}

ul li {
  display: inline-block;
  margin-right: 10px;
  list-style: none;
}

ul li a {
  display: inline-block;
  padding: 15px 40px 15px 40px;
  font-weight: bold;
  color: #cbd2d0;
  background: #0b3c49;
  &:hover {
    color: #0b3c49;
    background: #fffdfd;
    -webkit-transition: all .2s ease-in-out;
       -moz-transition: all .2s ease-in-out;
        -ms-transition: all .2s ease-in-out;
         -o-transition: all .2s ease-in-out;
            transition: all .2s ease-in-out;
  }
  
  text-decoration: none;
}

ul li.active a {
  background: #cbd2d0;
  color: #0b3c49;
}

.roles h3 {
  color: #0b3c49;
  padding: 0px 0px 25px 10px;
}

.photo {
   border-radius: 50%;
   float: center;
}

.short-description {
  color: #0b3c49;
  font-size: 18px;
}

.portfolio {
  /*background-color: #cbd2d0;*/
  /*width: 100%;*/
}

.contact-form {
  width: 100%;
  border: none;
  outline: none;
  border-bottom: 2px solid #0b3c49;
  font-size: 22px;
  background-color: #eeeeee;
  margin-bottom: 15px;
}

textarea {
    
    height: 60px;
    font-size: 18px !important;
    //padding: 12px 20px;
    //box-sizing: border-box;
    resize: none;
    
}

.contact {
  background-color: #eeeeee;
}

.footer {
  background: #0b3c49;
  width: 100%;
  height: 64px;
  text-align: right;
  float:right;
  padding: 12px;
}
              
            
!

JS

              
                // ------------------------------
// https://twitter.com/mattsince87
// ------------------------------

function scrollNav() {
  $('.nav a').click(function(){  
    //Toggle Class
    $(".active").removeClass("active");      
    $(this).closest('li').addClass("active");
    var theClass = $(this).attr("class");
    $('.'+theClass).parent('li').addClass('active');
    //Animate
    $('html, body').stop().animate({
        scrollTop: $( $(this).attr('href') ).offset().top - 160
    }, 400);
    return false;
  });
  $('.scrollTop a').scrollTop();
}
scrollNav();
              
            
!
999px

Console