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

Packages

Add Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
               <body data-spy="scroll" data-target=".navbar" data-off= "100">
  
<header>
  <a href="#" id="logo">Lpy.</a>
      <div class="pull-right">
      <ul class="nav navbar-nav">
        <li><a class="scrollable" href="#about">About Me</a></li>
        <li><a class="scrollable" href="#projects">Projects</a></li>
        <li><a class="scrollable" href="#contact">Contact</a></li>
        </ul>
      </div>
        </div>
  </header>
  
 <div id="about">
    <div class="container">
        <h2>About Me</h2>
        <p class="intro-text">
          Hello World. This is Li, I'm a Web developer with extensive practical experience in brand strategy, creative direction and project management; devoted to Functional Programming and Information Architecture. Also a huge fan of simple design interfaces.</p>
</div>
</div>
      
      <div id="projects">
        <div class="container">
        <div class="row">
          <h2 class="project-text">Projects</h2>
          <div class="col-xs-6">
            <a href="##" class="thumbnail"><img src="https://s3.amazonaws.com/codecademy-content/projects/armando-perez/p1.jpg"></a></div>
          <div class="col-xs-6">
           <a href="##" class="thumbnail"><img src="https://s3.amazonaws.com/codecademy-content/projects/armando-perez/p6.jpg"></a></div>
          <div class="col-xs-6">
           <a href="##" class="thumbnail"><img src="https://s3.amazonaws.com/codecademy-content/projects/armando-perez/p7.jpg" ></a></div>
          <div class="col-xs-6">
          <a href="##" class="thumbnail"><img src="https://s3.amazonaws.com/codecademy-content/projects/armando-perez/p3.jpg"></a></div>
          
          
      </div>
   </div>
</div>
  
<div class="contact" id="contact">
  <div class="row">
    <h2 class="contact-text">Contact Me</h2>
    <div class="col-md-8">
    <form role="form">
      <div class="form-group">
        <label for="Name"><h2>Name:</h2></label>
        <p class="name-error"></p>
        <input type="NAME" class="form-control" id="name">
      </div>
      <div class="form-group">
        <label for="Email"><h2>Email:</h2></label>
        <p class="email-error"></p>
        <input type="EMAIL" class="form-control" id="email">
      </div>
      <div class="form-group">
        <label for="Phone Number"><h2>Phone Number:</h2></label>
        <p class="phone-number-error"></p>
        <input type="PHONE NUMBER" class="form-control" id="phone-number">
      </div>
      <div class="form-group">
        <label for="Message"><h2>Message:</h2></label>
        <p class="message-error"></p>
        <textarea type="MESSAGE" class="form-control" id="message"></textarea>
      </div>

      <button type="SUBMIT" class="btn btn-default" id="submit">Submit</button>
      </form>
</div>
</div>
</div>

  <footer>
    <div>
    <h3>Always Around</h3>
    <ul id="footer">
      <a class="button social" href="https://codepen.io/lpy1994/"><li><i class="fa fa-codepen"></i></li></a>
      <a class="button social" href="https://www.facebook.com/"><li><i class="fa fa-facebook"></i></li></a>
      <a class="button social" href="https://github.com/lpy1994"><li><i class="fa fa-github"></i></li></a>
      <a class="button social" href="https://www.instagram.com/"><li><i class="fa fa-instagram" ></i></li></a>
      <a class="button social" href="https://twitter.com/"><li><i class="fa fa-twitter"></i></li></a>
      </div>
  </footer>
    
    
  
          
            
          
!
            
                h1, h2, p, a, body{
    font-family: Poiret One;
    color: #fff;
  }

  body {
    background: url("https://images.unsplash.com/photo-1456894332557-b03dc5cf60d5?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=29a9bb29bcbf19a5954d0110b19d5b51");
    background-size: cover;
    background-attachment: fixed;
  }


   header {
    margin: 0;
    padding: 0;
    width: 100%; 
    background: #000;
    position: fixed;
    z-index: 1;
    padding-bottom: 15px;
    padding-top: 15px;
  }

  #logo {
    font-size: 30px;
    padding-left: 20px;
    text-decoration: none;
  }

  .col-md-4 {
    padding-left: 40px;
    float: left:
  }


  #header li {
    padding-right: 40px;
    padding-top: 10px;
    display: block;
  }

  .scrollable {
    font-size: 22px;
    background: #000;
  }

  .nav li a {
    border-radius: 10px;
  }

  #about {
    padding-top: 100px;
    padding-bottom: 200px;
  }

  #about .container {
    background: #000;
    background: rgba(0,0,0,0.85);
    border-radius: 6px;
  }

  .intro-text {
    margin: 30px;
    font-size: 35px;
  }


  #projects .container {
    background: #000;
    background: rgba(0,0,0,0.85);
    border-radius: 6px;
  }

  .project-text {
    padding-left: 20px;
    padding-bottom: 20px;
  }

  .thumbnail {
    border: 0px;
    background: none;

  }

  img {
      display: block;
      position: relative;
      width: 100%;
  }

  .contact{
    width: 100%;
    margin-top: 150px;
    padding-left: 20px;
    padding-bottom: 30px;
    background: #000;
    background: rgba(0,0,0,0.85);
  }

  .form-control {
    width: 500px;
    height: 50px;
    border: none;
  }

  #message {
    height: 100px;
  }

  input[type="NAME"] {
    font-size: 20px;
    color:#000;

  }

  input[type="EMAIL"] {
    font-size: 20px;
    color:#000;

  }

  input[type="PHONE NUMBER"] {
    font-size: 20px;
    color:#000;

  }

  textarea[type="MESSAGE"] {
    font-size: 20px;
    color:#000;
  }

  #submit{
  width: 100px;
  background: #000;
  border: none;
  text-decoration: none;
  font-size: 20px;
   color: #fff;
  }

  footer {
    margin: 0;
    padding: 0;
    width: 100%; 
    background: #000;
    padding-bottom: 15px;
    padding-top: 10px;
    margin-top: 60px;
  }

  footer {
    text-align: center
  }

  #footer li {
    display: inline-block;
    list-style: none;
    padding-right: 30px;
  }

  .fa {
    font-size: 1.8em;
  }

            
          
!
            
              var contact = function() {
  $('form').submit(function(){
    var name = $('#name').val();
    
    if (name==="") {
      $('.name-error').text("Please Enter Your Name.");
    }
    return false;
  });
  
  $('form').submit(function(){
    var email = $("#email").val();
    
    if(email==="") {
      $('.email-error').text("Please Enter Your Email.");
    }
    return false;
  });
  
  $('form').submit(function(){
    var phoneNumber = $("#phone-number").val();
    
    if(phoneNumber==="") {
      $('.phone-number-error').text("Please Enter Your Phone Number.");
    }
    return false;
  });
  
  $('form').submit(function(){
    var message = $("#message").val();
    
    if(message==="") {
      $('.message-error').text("Tell me something.");
    }
    return false;
  });
  
};

$(document).ready(contact);
            
          
!
999px

Console