Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

Auto Save

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <section id="Home" class="container-fluid"><!--Home-->
  
  <div id="name" class="row"><!--name-->
    <div class="col-xs-12 text-center">
      <h1 class="text-center">&lt;David Stewart&gt;</h1>
    </div>
  </div> <!--name-->

  <div class="row"><!--webdev-->
    <div class="col-xs-12 text-center">
      <h3>Front End Web Developer</h3>
    </div>
  </div> <!--webdev-->

  <hr class="col-lg-6 col-xs-8 line centered">

  <div class="row"><!--find me-->
    <div class="col-xs-12 text-center">
      <p><em>Find me on:</em></p>
    </div>
  </div> <!--find me-->

  <div id="connect-buttons" class="row"><!--connect-->
    <div class="col-xs-12 text-center">  
      <a id="github" class="btn btn-default connect-btn" target="_blank" href="https://github.com/Davez01d">
        <i class="fa fa-github"></i>
        <span class="connect-txt">Github</span>
      </a>
      <a id="linkedin" class="btn btn-default connect-btn" target="_blank" href="https://www.linkedin.com/in/david-stewart-a19629111">
        <i class="fa fa-linkedin"></i>
        <span class="connect-txt">LinkedIn</span>
      </a>
      <a id="linkedin" class="btn btn-default connect-btn" target="_blank" href="https://www.freecodecamp.com/davez01d">
        <i class="fa fa-fire"></i>
        <span class="connect-txt">FreeCodeCamp</span>
      </a>
    </div><!--text-align: center-->
  </div> <!--connect-->
  
</section><!--home--><!--ends right above navbar for sticky nav scrolldowm-->


<nav class="sticky navbar noradius remove-bottom-space"><!--navbar-->
 <div class="col-xs-8 col-sm-4 nav-col">
  <button id="logo-button" class="btn nav-btn noradius to-home pull-left"> <!--David button-->
    <span class="brand-txt">&lt; David Stewart &gt;</span>
  </button> <!--David button-->
  </div>

  
  <div class="btn-group hidden-xs pull-right nav-col" role="group"><!--btn group-->
    <button id="home-btn" type="button" class="btn btn-default nav-btn to-home">
        <span class="nav-txt">Home</span>
    </button>
    <button id="about-btn" type="button" class="btn btn-default nav-btn to-about">
        <span class="nav-txt">About</span>
    </button>
    <button id="portfolio-btn" type="button" class="btn btn-default nav-btn to-portfolio">
        <span class="nav-txt">Portfolio</span>
    </button>
    <button id="contact-btn" type="button" class="btn btn-default nav-btn to-contact">
        <span class="nav-txt">Contact</span>
    </button>
  </div><!--btn-group-->
  
  <!--mobile navbar-->
  <div id="mobile-nav" class="btn-group visible-xs col-xs-3 nav-col pull-right"><!--dropdown menu-->
    <button type="button" class="btn nav-btn col-xs-12 dropdown-toggle" data-toggle="dropdown">
      <i class="fa fa-bars nav-txt"></i>
    </button>
    <ul class="dropdown-menu dropdown-menu-right">
      <li><a class="to-home">Home</a></li>
      <li><a class="to-about">About</a></li>
      <li><a class="to-portfolio">Portfolio</a></li>
      <li><a class="to-contact">Contact</a></li>
    </ul>
  </div><!--dropdown menu-->
</nav><!--navbar-->
  

<div class="container"><!--container--> 
    
    
  <section id="about"><!--about-->
    <div id="about-anchor"></div>  
    
    <div class="row"><!--dont add margin-top here, messes with navbar, use padding-top on #About instead-->
      <div class="col-xs-6">
        <h3>About me:</h3>
      </div>
    </div>
      
    <div class="row vert-space-30"><!--row-->
      <div class="col-lg-8 col-sm-8 col-xs-12">
        <p>&nbsp;&nbsp;I am a web developer with 7 months experience specializing in HTML, CSS, javascript, and jQuery.
        </p>
        <p>&nbsp;&nbsp;I currently reside in Stillwater, OK, and my goal is to work with local businesses and organizations, connecting them to the internet and helping them grow and thrive in today's interconnected world.</p>
        <p>&nbsp;&nbsp;When I am not honing my web development skills I enjoy- gaming, movies, traveling, skiing in the winter, going to the lake in the summer, and spending time with my friends and family.</p>
        <p>Languages and Frameworks: HTML, CSS, javascript, Jquery, Bootstrap.</p>
        <p>Tools: Git.</p>
      </div>

      <div class="col-lg-4 col-sm-4 hidden-xs"><!--pic-->
        <!--<img id="pic_of_me" class="img-responsive img-circle" src="https://avatars1.githubusercontent.com/u/14822918?v=3&s=460" alt="profile image"/>
      </div><!--pic-->
    </div><!--row-->
  </section><!--about-->


  <hr id="portfolio-anchor" class="line section-seperator">

  <section id="portfolio"><!--portfolio-->
    <div class="row">
      <div class="col-xs-6">
        <h3>Portfolio:</h3>
      </div>
    </div>
    
    <div id="thumbnails" class="row vert-space-30"><!--row-->
      <div id="padding-helper"><!--padding-helper-->
        <div class="col-sm-3 col-xs-6 port-tile text-center">
          <a class="thumbnail" href="https://codepen.io/Davez01d/full/obyBbz/" target="_blank">
            <img src="http://i1155.photobucket.com/albums/p558/Davez01d/Portfolio%20site-Codepen/f043ed05-0df8-42b9-a7b3-57ad6cab5f3b_zpsq2074gko.png" alt="Pomodoro thumbnail"/>
            <div class="caption">  
              <h4>Pomodoro Timer</h4>
              <p class="tech-used">JavaScript, jQuery, HTML, Css</p>
            </div>
          </a>
        </div>
        <div class="col-sm-3 col-xs-6 port-tile text-center">
          <a class="thumbnail" href="https://codepen.io/Davez01d/full/JGvdxX/" target="_blank">
            <img src="http://i1155.photobucket.com/albums/p558/Davez01d/Portfolio%20site-Codepen/726c239e-157c-4e4d-8931-77f3a4c9de9c_zpslofzlecy.png" alt="Calculator thumbnail"/>
            <div class="caption">  
              <h4>JavaScript Calculator</h4>
              <p class="tech-used">JavaScript, jQuery, HTML, Css</p>
            </div>
          </a>
        </div>
        <div class="col-sm-3 col-xs-6 port-tile text-center">
          <a class="thumbnail" href="https://codepen.io/Davez01d/full/gPegpd/" target="_blank">
            <img src="http://i1155.photobucket.com/albums/p558/Davez01d/Portfolio%20site-Codepen/e9b19619-ed3c-4149-ab15-0a039c59f5a7_zps7vmaslo8.png" alt="Quote generator thumbnail"/>
            <div class="caption">  
              <h4>Random Quote Generator</h4>
              <p class="tech-used">jQuery, twitter API</p>
            </div>
          </a>
        </div>
        <div class="col-sm-3 col-xs-6 port-tile text-center">
          <a class="thumbnail" href="https://codepen.io/Davez01d/full/KVQzwr/" target="_blank">
            <img src="http://i1155.photobucket.com/albums/p558/Davez01d/Portfolio%20site-Codepen/cc4d40ed-a085-43d6-9dde-90c59161b023_zps0ppintnt.png" alt="Web sketchpad thumbnail"/>
            <div class="caption">  
              <h4>Web Sketchpad</h4>
              <p class="tech-used">jQuery, HTML, CSS</p>
            </div>
          </a>
        </div>
      </div><!--padding-helper-->
    </div><!--row-->
    
  </section><!--portfolio-->


  <hr id="contact-anchor" class="line section-seperator">
  
    
  <section id="contact"><!--contact me-->  
    
    <div class="row">
      <div class="col-xs-6">
        <h3>Contact Me:</h3>
      </div>
    </div>
    
    <div class="row vert-space-30">
      <div class="col-xs-12">
        <p>Contact me by email: <a href="mailto:david.stewart1217@gmail.com">david.stewart1217@gmail.com</a></p>
        <p>Find me on social media:</p>
      </div>
    </div>
    
    <div> <!--buttons-->
      <a id="github" class="btn btn-default connect-btn" target="_blank" href="https://github.com/Davez01d">
        <i class="fa fa-github"></i>
        <span class="connect-txt">Github</span>
      </a>
      <a id="linkedin" class="btn btn-default connect-btn" target="_blank" href="https://www.linkedin.com/in/david-stewart-a19629111">
        <i class="fa fa-linkedin"></i>
        <span class="connect-txt">LinkedIn</span>
      </a>
      <a id="linkedin" class="btn btn-default connect-btn" target="_blank" href="https://www.freecodecamp.com/davez01d">
        <i class="fa fa-fire"></i>
        <span class="connect-txt">FreeCodeCamp</span>
      </a>
    </div> <!--buttons-->
    <div id="closing-tag" class="row">
      <div class="col-xs-12 text-center">
        <h3>&lt;/David Stewart&gt;</h3>
      </div>
    </div>
  </section><!--contact me-->
  
  
</div><!--container-->

   


              
            
!

CSS

              
                h1 {
  font-size: 6em;
  letter-spacing: .15em;
}

h3 { margin-top: 10px;}
.container h3 {
  font-size: 2em;
  margin-top: 0px;
  margin-bottom: 40px; 
}

p {font-size: 1.35em;}

a {
  text-decoration: none;
  color: black;
}
a:hover { 
  text-decoration: none; 
  outine: none;
}
a:focus { 
  text-decoration: none; 
  outline: none;
  outline-offset: 0;
}

#Home {
  background-color: #2766af;
  color: white;
}

#name {
  margin-top: 50px;
  letter-spacing: .65em;
}

.centered {
  float: none;
  margin-left: auto;
  margin-right: auto;
}

#connect-buttons {
  margin-bottom: 60px;
}

.connect-btn {
  color: white;
  background-color: #2766af;
  border: 2px solid white;
}
.connect-btn:hover {
  color: black !important;
  background-color: white !important;
  border-color: #2766af !important; 
}
.connect-btn:focus {
  color: white;
  background-color: #2766af;
  border: 2px solid white;
}

.connect-txt { font-weight: 600;}

.btn {
  transition: all .12s linear;
}

nav .btn:hover { 
  background-color: #2766af !important;
  color: white;
}
nav .btn:focus { 
  outline: none;
  background-color: white;
}

.on-section {
  background-color: #2766af !important;
  color: white;
}
.on-section:focus {
  color: white;
}

.navbar { 
  height: 65px;
  background-color: white;
  border: 2px solid #2766af;
  border-radius: 0;
  margin-bottom: 0;
}

.nav-col {height:100%;}

.nav-btn {
  border-radius: 0;
  border: none;
  background-color: white;
  height: 100%;
}

.nav-txt { 
  font-weight: 600;
  font-size: 1.1em;
}

#logo-button {
  margin-left: -15px; /*correct col padding*/
  padding-left: 20px;
  padding-right: 25px;
}

.brand-txt {
  font-size: 2em;
  font-weight: 700;
}

#mobile-nav {
  padding: 0px;
}

.stuck {
  z-index: 150;
  position: fixed;
  top: 0;
}

#about {
  padding-top: 55px;
}

#pic_of_me { border: 6px solid #d63c20;}

.line { border-width: 3px;}

.container .line {
  margin-top: 50px;
  margin-bottom: 50px;
}

.relative { position: relative;}

#padding-helper {
  padding-left: 15px;
  padding-right: 15px;
}

#thumbnails {
  margin-bottom: 30px;
}

.port-tile {
  padding: 0;
}

.port-tile a {
  z-index: 0;
  position: relative;
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  padding: 0;
  outline: 3px solid #d63c20;
  transition: all .12s ease;
}
.port-tile a:hover {
  z-index: 10;
  outline: 3px solid #d63c20;
  transform: scale(1.12, 1.12);
}

.caption {
  background-color: #d63c20;
  color: white;
}
.caption h4 { 
  color: white;
  font-size: 1.33em;
  margin-top: 5px;
  margin-bottom: 0px;
}

.tech-used {
  color: white;
  font-size: 1em;
  font-style: italic;
  margin-bottom: 5px; 
}

#closing-tag {
  margin-top: 400px;
}

/*tablet portrait*/
@media (max-width: 860px) {
  h1 { font-size: 4em;}
  .container p { font-size: 1.2em}
}

/*phone landscape*/
@media (max-width: 590px) {
  h1 { font-size: 2.5em;}
  #name {
    margin-top: 10px;
    letter-spacing: .18em;
  }  
  h3 {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 1.0em;
  }
  #Home .line { border-width: 2px; }
  #Home p { font-size: 1em; }
  .connect-txt { font-size: .8em; }
  #connect-buttons { margin-bottom: 15px; }
  .navbar { height: 50px; }
  .brand-txt { font-size: 1.35em; }  
  .nav-txt { 
    font-size: 1.4em; 
    font-weight: 100;
  }
  .container p { font-size: 1.1em}
  #about { padding-top: 25px; }
  .container h3 { 
    font-size: 1.35em; 
    margin-bottom: 15px;
  }
  .container p { font-size: 1em; }
  .container .line {
    margin-top: 20px;
    margin-bottom: 20px
  }
  .port-tile a { margin-bottom: 0px; }
  .port-tile a:hover {
    outline: 3px solid #d63c20;
    outline-offset: 0px;
    transform: none;
  }
  h4 { 
    font-size: 1.15em;
  }
  .port-tile p { font-size: .85em }
  .tech-used {  
    font-size: 2em;
  }
  #closing-tag { margin-top: 75px; }
}

/*phone portrait*/
@media (max-width: 400px) {
  h1 { font-size: 1.8em; }
  
}












              
            
!

JS

              
                var aboutPadding = parseInt($('#about').css('padding-top'),10);

$(window).scroll(function() {
  var headerHeight = $("#Home").height();  
  var navHeight = $(".navbar").outerHeight();
  if ( $(this).scrollTop() > headerHeight ) { //when window scrolls past #Home height
    $(".sticky").addClass("navbar-fixed-top"); //make navbar fixed
    $("#about").css("padding-top", navHeight+aboutPadding+"px"); //smooth transition on scrolldown
  } else { //window no longer scrolled past #Home (scrolled up)
    $(".sticky").removeClass("navbar-fixed-top"); //remove fixed navbar
    $("#about").css("padding-top", ""); //remove extra padding on scrollup
  }
  
  var scrollTop = $(window).scrollTop(); 
  var aboutPoint = $('#about').offset().top;
  var lineMargin = parseInt($('.section-seperator').css('marginTop'));
  var portfolioPoint = $('#portfolio-anchor').offset().top;
  var contactPoint = $('#contact-anchor').offset().top;

 
  if (scrollTop < aboutPoint)  {
    $('#home-btn').addClass('on-section');
    $('#about-btn').removeClass('on-section');
  } else if (scrollTop > aboutPoint && scrollTop < (portfolioPoint - navHeight)) {
    $('#home-btn').removeClass('on-section');
    $('#about-btn').addClass('on-section');
    $('#portfolio-btn').removeClass('on-section');
  } else if (scrollTop > (portfolioPoint - navHeight) && scrollTop < (contactPoint - navHeight)) {
    $('#about-btn').removeClass('on-section');
    $('#portfolio-btn').addClass('on-section');
    $('#contact-btn').removeClass('on-section');
  } else if (scrollTop > (contactPoint - navHeight)) {
    $('#portfolio-btn').removeClass('on-section');
    $('#contact-btn').addClass('on-section');
  }
});


$('document').ready(function() { 
  $('#home-btn').addClass('on-section');
  
  $('.to-home').click(function() {
    $('html, body').animate({
      scrollTop: $('#Home').offset().top - $('.navbar').height()
    },600);
  });

  $('.to-about').click(function() {
    $('html, body').animate({
      scrollTop: $('#about-anchor').offset().top - $('.navbar').height() -aboutPadding
    },600);
  });

  $('.to-portfolio').click(function() {
    $('html, body').animate({
      scrollTop: $('#portfolio-anchor').offset().top - $('.navbar').height()
    },600);
  });

  $('.to-contact').click(function() {
    $('html, body').animate({
      scrollTop: $('#contact-anchor').offset().top - $('.navbar').height()
    },600);
  });
});
              
            
!
999px
We're stronger <u>nited than <div>ided.

Console