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=Lobster' rel='stylesheet'>

<body>
     <div class="parallax">
  <div class="margin"></div>

  <nav class="row">
    <div class="col-xs-8 col-sm-6 col-md-6">
      <h1>Matthew<b>Williams</b></h1>
    </div>
    <a href="#about" class="col-xs-3 col-sm-2 col-md-2 btn">About</a>
    <a href="#portfolio" class="col-xs-3 col-sm-2 col-md-2 btn">Portfolio</a>
    <a href="#contact" class="col-xs-3 col-sm-2 col-md-2 btn">Contact</a>
    </nav>
  
  <div class="bio">
    
   
    <a name="about"></a><!--Linked to from Nav bar-->
    <h2 class="section">A little about myself</h2>
    <div class="flex-container thick-orange-border">
   <p class="text"> <img class="img-responsive matt-photo" src="https://scontent-sjc2-1.xx.fbcdn.net/v/t1.0-1/c50.50.621.621/s160x160/1237830_1413029022250677_1845404495_n.jpg?oh=64d662cbc5e9a902174ed52c8f657bc4&oe=59CDD6E8" alt="Matthew with his wife, Valerie."><Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse ultrices urna non ex consectetur,consectetur adipiscing elit. Suspendisse ultrices urna non ex consectetur, eu varius justo consequat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut elementum quam sollicitudin scelerisque feugiat. Vestibulum rutrum justo quis nisi tempor sollicitudin. Integer viverra luctus dolor. Fusce vitae pulvinar mi, vitae placerat augue.<br> Maecenas convallis congue turpis ut viverra. Cras ut varius mauris, eget laoreet purus. Nulla malesuada, arcu in bibendum porttitor, mauris ex tempor velit, vitae varius nunc enim nec enim. Etiam sodales faucibus ullamcorper.Vestibulum purus est, tempus id tincidunt eget, accumsan non justo. Proin sit amet sapien quis odio ultricies malesuada. Phasellus a dolor lacus. Fusce ornare odio a felis malesuada mollis. Donec placerat ligula ac metus consequat fermentum.<br> Mauris rhoncus ligula eros, eu scelerisque dolor euismod et. Curabitur consequat elit vitae lorem congue blandit. Vestibulum hendrerit nibh ac dictum consequat. Aliquam a erat nec orci pellentesque tempus et sit amet eros. Mauris malesuada leo eget imperdiet commodo. Vestibulum pulvinar elit nec turpis sagittis, ut mollis nulla gravida. Etiam leo est, bibendum ut dignissim id, placerat eu ante. Etiam ut risus mollis ante faucibus auctor. Nulla facilisi. Ut bibendum vitae orci et vehicula.</p>
    
    </div>
     </div>
     
     
       <a name="portfolio"></a><!--Linked to from Nav bar-->
       <h2 class="section">Examples of work</h2>
 <!--    
 <div class="flex-container thick-orange-border">
   
   <div class="flex-item"><img src="http://file.mockupplus.com/image/2016/03/bc33a981-1ce0-4f7c-852c-ee031e87f324.png" alt="website"</div>
   <div class="flex-item"><img src="http://file.mockupplus.com/image/2016/03/bc33a981-1ce0-4f7c-852c-ee031e87f324.png" alt="website"></div>
   <div class="flex-item"><img src="http://file.mockupplus.com/image/2016/03/bc33a981-1ce0-4f7c-852c-ee031e87f324.png" alt="website"</div>
   <div class="flex-item"><img src="http://file.mockupplus.com/image/2016/03/bc33a981-1ce0-4f7c-852c-ee031e87f324.png" alt="website"</div>
   <div class="flex-item"><img src="http://file.mockupplus.com/image/2016/03/bc33a981-1ce0-4f7c-852c-ee031e87f324.png" alt="website"</div>
   <div class="flex-item"><img src="http://file.mockupplus.com/image/2016/03/bc33a981-1ce0-4f7c-852c-ee031e87f324.png" alt="website"</div>
  </div>
     </div>
 -->
  <!--
   <form autocomplete="on">
    <input type="text" name="name" placeholder="Name..."><br>
     <input type="text" name="email" placeholder="Email..."><br>
     <input type="tel" name="phone" placeholder="Phone..."><br>
     <input type="submit" value="Submit"><br>
   </form>
-->   
     
       <a name="contact"></a><!--Linked to from Nav bar-->
     <h2 class="section">Get in touch</h2>
     

   <form class="one" autocomplete="on">
     <input type="text" name="name" maxlength="50" placeholder="Name..." ><br>
     <input type="text" name="email" maxlength="50" placeholder="Email..." class="col-xs-8 col-sm-5 col-md-5 "><br>
     <input type="text" name="tel" maxlength="10" placeholder="Phone..." class="col-xs-8 col-sm-5 col-md-5 "><br>
    
     <textarea rows="4" cols="50" name="comments" maxlength="300" placeholder="Comments..." class="col-xs-8 col-sm-5 col-md-5" ></textarea>
     
     <input type="submit" id="submit-center" value="Submit" class="col-xs-8 col-sm-5 col-md-5 btn"><br>
   </form>
    <footer>
        &copy; 2017 <a class="mail" href=mailto:"mattemersonwilliams@gmail.com">Matthew Williams</a> 
      <a href="https://www.facebook.com/" target="_blank">
        <i class="fa fa-facebook-official fa-lg"></i></a>
      <a href="https://www.linkedin.com/in/matthew-williams-a43986139/"target="_blank"><i class="fa fa-linkedin fa-lg"></i></a>
      <a href="https://wordpress.com/"target="_blank"><i class="fa fa-wordpress fa-lg"></i></a>
   </footer>
     <div class="margin"></div>

  </body>
  
 
</div>
              
            
!

CSS

              
                /*
Read This when all sections are done. Make Layers scroll at different speeds.
http://keithclark.co.uk/articles/pure-css-parallax-websites/
  */
.margin {
  padding-bottom:50px;
}


body, input[type=text], input[type=submit], textarea {
    font-family: 'calibri';font-size: 15px;
}

.parallax {
    /* The image used */
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQBa68ExkMxAWYEtZkiauY0vXDC_TUJGCfH5gDPZwepQ_T7Mfal');

    /* Full height */
 /*<div class="parallax">*/
  
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.row {
 /*margin-top: 25px;*/
  margin-bottom: 50px;
    background-color: #4682B4;
    font-size: 11px;
  margin-left:2%;
  margin-right:2%;
  border: 1px solid white;
    padding-bottom: 20px;
    box-shadow: 20px 19px 5px black;
    border-radius: 4px;

}
.btn {
  border-left: 1px solid white;
  text-align: right;
  font-weight: bold;
  color: black;
}

.btn:hover {
  text-align: right;
  color: white;
  background-color: orange;
  font-size: 2.25em;
  font-weight: normal;
   box-shadow: 20px 19px 5px black;
}

.bio {
  color: white;
  margin-top: 25px;
  margin-bottom: 50px;
}
.matt-photo {
    max-width: 100%;
    height: auto;
  float: left;
   border-color: orange;
    border-width: 20px;
    border-style: double;
    border-radius: 10%;
  margin-top: -6%;
  margin-left: -6%;
}
.thick-orange-border {
  border-color: orange;
    border-width: 10px;
    border-style: solid;
    border-radius: 10%;
}
p.text {
  padding: 20px;
  text-align: justify;
}
.section {
  color: white;
  text-align: center;
}
.flex-container {
  display: flex;
  margin: auto;
  margin-top: 25px;
  margin-bottom: 50px;
  width: 70%;
  height: auto;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: rgba(255, 165, 0, 0.5);
  border-radius: 1%;
}
.flex-item {
  float: right;
  width: auto;
  height: auto;
  margin: 0.5px;
}

input, textarea {
  font-size: 12px;
  height:50px;
  margin-left: 30%;
   transition: all .2s;
}
input:focus {
  background-color: orange;
  color: white;
  font-size: 20px;
  
}
textarea:focus {
  background-color: orange;
  color: white;
  font-size: 20px;
}
 
.one {
  margin-top: 25px;
  margin-bottom: 25px;
  margin-left:2%;
  margin-right:2%;
  background-color: #4682B4;
  font-size: 12px;
  border-radius:4px;
}

input::placeholder, textarea::placeholder {
  color:black;
}

input[name=name] {
  background-image: url("https://tagawa.github.io/dax-designer/images/person.svg");
  background-position: right;
  background-repeat: no-repeat;
  background-size:40px;
  text-align: left;
    border-radius:4px;

}
input[name=email] {
  background-image: url("https://d30y9cdsu7xlg0.cloudfront.net/png/1674-200.png");
  background-position: right;
  background-repeat: no-repeat;
  background-size:40px;
    border-radius:4px;

}
input[name=tel] {
  background-image: url("http://www.freeiconspng.com/uploads/--apple-call-cell-contact-mobile-phone-icon--icon-search-engine-30.png");
  background-position: right;
  background-repeat: no-repeat;
  background-size:40px;
    border-radius:4px;

}

textarea {
  height: 150px;
   background-image: url("http://q.com.pk/wp-content/uploads/2017/03/comment.png");
  background-position: top right;
  background-repeat: no-repeat;
  background-size:40px;
    border-radius:4px;

}

#submit-center {
  text-align: center;
}
footer { 
  margin-top: 25px;
  /*margin-bottom: 50px;*/
  font-size: 18px;
  background-color: orange;
  color: #4682B4;
  font-weight: bold;
  text-align: center;
  margin-left:2%;
  margin-right:2%;
  border-radius: 4px;
}
.fa {
  padding-left: 20px;
  color: #4682B4;
}
.fa:hover {
  color: white;
  font-size: 200%;
}
.mail:link {
  color: #4682B4;
}
.mail:hover {
  color: white;
  font-size: 2em;
  text-decoration:none;
}



              
            
!

JS

              
                
              
            
!
999px

Console