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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <link href="https://fonts.googleapis.com/css?family=Montserrat:500|Passion+One:700|Montserrat+Subrayada:700;" rel="stylesheet">
<!--Nav Bar-->

<div class="topnav" id="myTopnav">
  <a href="#home">Home</a>
  <a href="#portfolio">Portfolio</a>
  <a href="#contact">Contact</a>
  <a href="javascript:void(0);" style="font-size:15px;" class="icon" onclick="myFunction()">&#9776;</a>
</div>
<!--Hero Image-->
<div class="container-top blue-background" id="home">
  <div class="left-block">
    <img class="intro-img" src="https://tinyurl.com/y9kwflff" alt="It's Mike!">
  </div>
  <div class="right-block">
    <h1 class="name">Michael Burkhardt</h1>
    <h3 class="job"> Front end developer and Program Manager with an international background. I have many years of experience as a power user and coordinating between user and developer.</h3>
  </div>
</div>
<!--Portfolio-->
<div id="portfolio" class="border">
<div>
  <h1 class="portfolio"> Portfolio <h1>
    </div>
  <div class="container-mid">
    <div>
    <a class="a-mid" href="#"><figure><img src="https://res.cloudinary.com/cretemonkey/image/upload/c_scale,q_auto:best,w_284/v1501014493/first_project_ks4uhn.jpg" alt="All Hail the Growler;"></a>
      <figcaption>
        My Very First Project
      </figcaption>
      </figure>
    </div>
    <div>
    <a class="a-mid" href="#"><figure><img src="https://res.cloudinary.com/cretemonkey/image/upload/c_scale,w_284/v1501016038/sky_ztj7r1.jpg" alt="Pretty;"></a>
      <figcaption>
        Beautiful Skies Ahead
      </figcaption>
      </figure>
    </div>
    <div>
    <a class="a-mid" href="#"><figure><img src="https://res.cloudinary.com/cretemonkey/image/upload/c_thumb,h_160,w_150/v1501069168/Logo_Stamp_wjudsm.png" alt="dice logo"></a>
      <figcaption>
        Time to Roll
      </figcaption>
      </figure>
    </div>
    <div>
    <a class="a-mid" href="#"><figure><img src="https://res.cloudinary.com/cretemonkey/image/upload/c_scale,h_160,w_150/v1501609904/Cold_Brew_Test_ss1m9t.jpg" alt="cold brew coffee"></a>
      <figcaption>
        Mmmmm Coffee
      </figcaption>
      </figure>
    </div>
        </div>
    </div>
<!--Contact Area-->
<div class="container-top blue-background" id="contact">

    <form class="well form-horizontal" action=" " method="post" id="contact_form">
<fieldset>

<!-- Form Name -->
<legend class="name">Send me a message any time, it's always a pleasure meeting new people.</legend>

<!-- Text input-->
<div class="form-group">
  
  <label class="col-md-4 control-label">Name</label>  
  <div class="col-md-4 inputGroupContainer">
  <div class="input-group">
  <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
  <input  name="name" placeholder="Name" class="form-control"  type="text">
    </div>
  </div>
</div>

<!-- Text input-->
       <div class="form-group">
  <label class="col-md-4 control-label">E-Mail</label>  
    <div class="col-md-4 inputGroupContainer">
    <div class="input-group">
        <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
  <input name="email" placeholder="E-Mail Address" class="form-control"  type="text">
    </div>
  </div>
</div>


<!-- Text input-->
       
<div class="form-group">
  <label class="col-md-4 control-label">Phone #</label>  
    <div class="col-md-4 inputGroupContainer">
    <div class="input-group">
        <span class="input-group-addon"><i class="glyphicon glyphicon-earphone"></i></span>
  <input name="phone" placeholder="(845)555-1212" class="form-control" type="text">
    </div>
  </div>
</div>

<!-- Text area -->
  
<div class="form-group">
  <label class="col-md-4 control-label">Message</label>
    <div class="col-md-4 inputGroupContainer">
    <div class="input-group">
        <span class="input-group-addon"><i class="glyphicon glyphicon-pencil"></i></span>
        	<textarea class="form-control" name="comment" placeholder="Message"></textarea>
  </div>
  </div>
</div>

<!-- Success message -->
<div class="alert alert-success" role="alert" id="success_message">Success <i class="glyphicon glyphicon-thumbs-up"></i> Thanks for contacting me, I will get back to you shortly.</div>

<!-- Button -->
<div class="form-group">
  <label class="col-md-4 control-label"></label>
  <div class="col-md-4">
    <button type="submit" class="btn btn-warning" >Send <span class="glyphicon glyphicon-send"></span></button>
  </div>
</div>

</fieldset>
</form>
</div>
    </div>
              
            
!

CSS

              
                #myTopnav{
 position: fixed;
  top-margin: 0;
  width: 100%; 
}
.topnav {
  overflow: hidden;
  background-color: #333;
  position: fixed;
  top-margin: 0;
  width: 100%;
}
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px; 
}
.topnav a:hover {
  background-color: #ddd;
  color: black;
}
.topnav .icon {
  display: none;
}
.topnav.responsive a {
  float: none;
  display: block;
  text-align: left;
}
.blue-background {
  /*background-color: #3CCDFF;*/
  background-color: #08AEEA;
  background-image: linear-gradient(0deg, #08AEEA 0%, #2AF598 100%);
}
.intro-img {
  border-radius: 20px;
  width: 50%;
}
.container-top {
  display: flex; /* or inline-flex */
  flex-wrap: wrap;
  padding: 75px 50px;
}
.left-block {
  width: 100%;
}
.right-block {
  width: 100%;
}
.name {
  font-family: 'Passion One', cursive;
  padding-bottom: 40px;
}
.job {
  font-family: 'Montserrat', sans-serif;
}
/* Portfolio */
.portfolio {
  text-align: center;
  text-color: black;
  font-family: 'Montserrat Subrayada', sans-serif;
  margin-top: 50px;
}
.border{
  border-style: outset;
  border-width: 15px 15px;
}
.container-mid {
  display: flex; /* or inline-flex */
  flex-wrap: wrap;
  padding: 25px 50px;
  align-items: center;
  justify-content:center;
  align-content:center;
}
.a-mid {
  width: 100%;
  height: auto;
  padding: 20px;
}
figcaption {
  font-family: "Montserrat Subrayada", sans-serif;
  text-align: center
}
#success_message{ display: none;}
.contact-msg{
  width=50%
}
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
/*@Media*/
@media screen and (min-width: 50em) {
  .a-mid {
    width: 50%;
  }
}
@media screen and (min-width: 50em) {
  .left-block {
    width: 30%;
  }
  .right-block {
    width: 70%;
  }
}
@media screen and (max-width: 50em) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}
@media screen and (max-width: 50em) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

              
            
!

JS

              
                function myFunction() {
    var x = document.getElementById("myTopnav");
    if (x.className === "topnav") {
        x.className += " responsive";
    } 
    else {
        x.className = "topnav";
    }
}
 $(document).ready(function() {
    $('#contact_form').bootstrapValidator({
        // To use feedback icons, ensure that you use Bootstrap v3.1.0 or later
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            name: {
                validators: {
                        stringLength: {
                        min: 4,
                    },
                        notEmpty: {
                        message: 'Please enter your name'
                    }
                }
            },
             
            email: {
                validators: {
                    notEmpty: {
                        message: 'Please enter your email address'
                    },
                    emailAddress: {
                        message: 'Please enter a valid email address'
                    }
                }
            },
       
            comment: {
                validators: {
                      stringLength: {
                        min: 10,
                        message:'Please enter at least 10 characters'
                    },
                    notEmpty: {
                        message: 'Remember to enter a message'
                    }
                    }
                }
            },
        })
        .on('success.form.bv', function(e) {
            $('#success_message').slideDown({ opacity: "show" }, "slow"); // Do something ...
                $('#contact_form').data('bootstrapValidator').resetForm();

            // Prevent form submission
            e.preventDefault();

            // Get the form instance
            var $form = $(e.target);

            // Get the BootstrapValidator instance
            var bv = $form.data('bootstrapValidator');

            // Use Ajax to submit form data
            $.post($form.attr('action'), $form.serialize(), function(result) {
                console.log(result);
            }, 'json');
        });
});

              
            
!
999px

Console