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 rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<link rel="https://raw.githubusercontent.com/kswedberg/jquery-smooth-scroll/master/jquery.smooth-scroll.js">
<!---Add font awesome--->
<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#" id="navbar-pad1">Icon</a>
      </div>
    <div class="collapse navbar-collapse" id="myNavbar">
 <ul class="nav navbar-nav navbar-right" id="navbar-pad2">
   <li><a href="#home">Home</a></li>
   <li><a href="#portfolio">Portfolio</a></li>
   <li><a href="#about">About Me</a></li>
   <li><a href="#contact">Contact</a></li>
    </ul>
  </div>
</nav>
  <br>
  <br>
   <div class="container well" id="background1">
     <div class="row" id="home">
       <div class="col-md-8 text-1">
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore e<hr style="color:#292929; background-color:#292929; height:1px; width:100%"></p>
       <!---Ideas for styling horizontal rule: http://stackoverflow.com/questions/3764571/why-doesnt-hr-s-colour-change --->
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea com</p>
           <br>
           <br>
       </div>
         <div class="col-md-4">
         <img src="https://upload.wikimedia.org/wikipedia/commons/d/d5/Placeholder_female_superhero_c.png" class="profile border"></img>
     </div>
       </div>
<br>
<div class="row background2">
  <br>
  
  <!---Portfolio + thumbnail images. Make thumbnails responsive with ul--->
  <!---Used grid system for thumbnails. Try using div-col-md to make images collapse in mobile--->
  <div id="portfolio">
  <h1 class="text-center">Portfolio</h1>
  <hr style="color:#292929; background-color:#292929; height:1px; width:60%;">
    <div>
  <div class="col-md-6 pic"><img src="http://www.thebakerymadewithlove.com/wp-content/uploads/2014/08/placeholder.png" style="max-height:350px;"></div>
  <div class="col-md-6 pic"><img src="http://www.thebakerymadewithlove.com/wp-content/uploads/2014/08/placeholder.png" style="max-height:350px;"></div>
  <div class="col-md-6 pic"><img src="http://www.thebakerymadewithlove.com/wp-content/uploads/2014/08/placeholder.png" style="max-height:350px;"></div>
  <div class="col-md-6 pic"><img src="http://www.thebakerymadewithlove.com/wp-content/uploads/2014/08/placeholder.png" style="max-height:350px;"></div>
  <div class="col-md-6 pic" style="max-height:350px;"><img src="http://www.thebakerymadewithlove.com/wp-content/uploads/2014/08/placeholder.png" style="max-height:350px;"></div>
  <div class="col-md-6 pic" style="max-height:350px;"><img src="http://www.thebakerymadewithlove.com/wp-content/uploads/2014/08/placeholder.png" style="max-height:350px;"></div>
  </div>
  </div>
</div>
  <br>
  <br>
   <div id="contact" class="container background2">
  <h1 class="text-center">Contact Me</h1>
       <hr style="color:#C0C0C0; background-color:#C0C0C0; height:.5px; width:60%;">
    <div class="col-md-6">
      <form id="some_form" action="mailto:freewill4635@gmail.com" method="post" enctype="text/plain">
        <fieldset>
      <input type="text" class="contact" placeholder=" Name" name="First Name"><br>
      <input type="text" class="contact" placeholder=" Email address" name="Last Name"><br>
    <input type="text" class="contact" placeholder=" Phone Number" name="Contact"><br>
  <input type="text" class="contact" placeholder=" Message" name="Message"><br>
      <button class="btn btn-default button">Submit</button>
        </fieldset>
    </form>
        <br>
    </div>
 <div id="about">
    <div class="col-md-6"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur facilisis erat eget tincidunt vulputate. In lacinia, turpis non efficitur maximus, dolor tellus fermentum tellus, vel tempor dui erat et enim. Quisque dapibus turpis at quam ornare maximus. Vestibulum sodales placerat est id convallis. Sed volutpat at velit ut pulvinar. Integer eu lectus ac nibh tristiq</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur facilisis erat eget tincidunt vulputate. In lacinia, turpis non efficitur maximus, dolor tellus fermentum tellus, vel tempor dui erat et enim. Quisque dapibus turpis at quam ornare maximus. Vestibulum sodales placerat est id convallis. Sed volutpat at velit ut pulvinar. Integer eu lectus ac nibh tristiq</p></div>
  </div>
    </div>
  <br>
</div>
<br>
<div class="container">
  <div class="col-md-6">
    <h3 class="text-center">ABOUT THIS PAGE</h3>
    <p class="text-center">Made with <i class="fa fa-beer fa-lg"></i> and <i class="fa fa-clock-o fa-lg"></i> by <a href="https://codepen.io/Fern444/pen/dOvOmj">Jet</a>.</p>
  </div>
  <div class="col-md-6">
    <h3 class="text-center">AROUND THE WEB</h3>
    <div class="text-center row">
      <i class="fa fa-twitter fa-3x"></i>
      <i class="fa fa-linkedin fa-3x"></i>
      <i class="fa fa-facebook fa-3x"></i>
      <i class="fa fa-codepen fa-3x"></i>
    </div>
  </div>
</div>
</div>
<p class="text-center">Jet<i class="fa fa-copyright fa-lg"></i>2016. All rights reserved</p>
  
<!---https://www.w3schools.com/bootstrap/bootstrap_navbar.asp--->
<!---For ideas on responsive thumbnail list: https://kristinlbradley.wordpress.com/2012/06/21/easy-responsive-design-thumbnail-list/ --->
  <!---<a href="mailto:freewill4635@gmail.com">Send</a>Can put this in with submit--->
<!---Smooth scrolling: http://stackoverflow.com/questions/19127212/smooth-scroll-with-navbar-fixed-top--->
<!---https://paulund.co.uk/smooth-scroll-to-internal-links-with-jquery - smooth scroll jquery to div--->
              
            
!

CSS

              
                li {
  font-size: 20px;
}
#navbar-pad1 {
  margin-left: 100px;
}
#navbar-pad2 {
  margin-right: 15%;
}
.profile {
  width: 70%;
  height: 50%;
  margin-left: 15%;
}
.border {
    border-color: #d3d3d3;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
}
.text-1 {
  padding-top: 6%;
  padding-bottom: 6%;
  text-align: center;
}
#background1 {
  background-color: #d3d3d3;
}
.background2 {
  background-color: #ffffff;
  margin-left: -20px;
  margin-right: -20px;
}  
.pic {
  margin: 20px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.contact {
  width: 80%;
  background-color: #F6F2F2;
  height: 40px;
  border: 2px solid #FFF;
  margin-top: 5px;
}
.button {
  width: 20%;
  margin-top: 10px;
}
.fa {
  padding: .5%;
}
              
            
!

JS

              
                //Reset form after submission of data//
$(document).ready(function(){
    $("button").click(function(){
        $('#some_form')[0].reset();
    });
});

//collapse responsive navbar after click//
$(document).ready(function () {
  $(".navbar-nav li a").click(function(event) {
    $(".navbar-collapse").collapse('hide');
  });
});

//For smooth scrolling between elements//
$(document).ready(function() {
  $('a[href^="#"]').on('click',function(e){
    e.preventDefault();
    
    var target = this.hash;
    var $target = $(target);
    
    $('html, body').stop().animate({
      'scrollTop': $target.offset().top -70
    }, 900, 'swing', function () {
      window.location.hash =  target;
    })
  })
})


//jQuery mailto link: http://stackoverflow.com/questions/26104378/jquery-mailto-with-anchor-element//

              
            
!
999px

Console