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.

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.

HTML

              
                <body data-spy="scroll" data-target="#myScrollspy">
  <header id ="header">
    <nav class="navbar navbar-fixed-top" id="myScrollspy">
      <img src='https://imgur.com/HLgsfR7.jpg' alt='CrisBarreiro' title='CrisBarreiro'/>
      <ul class="nav nav-tabs" role="tablist" id ="nav-list">
        <li><a href="#about">About</a></li>
        <li><a href="#projects">Projects</a></li>
        <li><a href="#contact">Contact</a></li>
      </ul>
    </nav>
  </header>
  <main id="content">
    <div id="about">
      <div id="about-div">
        <h1 class="text-center">About</h1>
          <hr class="dark"/>
        <div id="intro">
          <p id="about-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nulla sapien, semper luctus nunc ac, dapibus pulvinar odio. Morbi feugiat nibh sit amet ante rhoncus, sed tempus dolor pharetra. Nam egestas placerat malesuada. Nulla quam risus, varius vel ipsum at, porta aliquam ligula. Nullam eleifend felis ut arcu maximus euismod eget non erat. Mauris faucibus ultricies diam ut dapibus.<p>
        <hr class="bright">
          <p class="skills">Software Developer</p>
        </div>
        <img id="avatar" src="https://imgur.com/HLgsfR7.jpg"/>
      </div>
    </div>
    
    <section id="projects">
      <h1 class="text-center">Projects</h1>
          <hr class="dark">
      <img class="col-2-image-l" src="http://qlip.in/sites/default/files/YMCA-Realtor-Donation-3.jpg">
      <img class="col-2-image-r" src="http://qlip.in/sites/default/files/YMCA-Realtor-Donation-3.jpg">
      <img class="col-2-image-l" src="http://qlip.in/sites/default/files/YMCA-Realtor-Donation-3.jpg">
       <img class="col-2-image-r" src="http://qlip.in/sites/default/files/YMCA-Realtor-Donation-3.jpg">
       <img class="col-2-image-l" src="http://qlip.in/sites/default/files/YMCA-Realtor-Donation-3.jpg">
       <img class="col-2-image-r" src="http://qlip.in/sites/default/files/YMCA-Realtor-Donation-3.jpg">
    </section>
    <section id="contact">
      <h1 class="text-center">Contact</h1>
      <hr class="dark">
      <form id="contact-form" action="#about">
        <div class="form-item">
          <input class="input" type="text" id="name" required/>
          <span class="highlight"></span>
          <span class="bar"></span>
          <label id="name-label" for="name">Name</label>
        </div>
        
        <div class="form-item">
          <input class="input" type="text" id="email" required/>
          <span class="highlight"></span>
          <span class="bar"></span>
          <label id="email-label" for="email">Email</label>
        </div>
        
        <div class="form-item">
          <input class="input" type="text" id="phone" required>
          <span class="highlight"></span>
          <span class="bar"></span>
          <label id="phone-label" for="phone">Phone number</label>
        </div>
        
        <div class="form-item">
          <textarea class="input" id ="message" rows="4" cols="50" required></textarea>
           <span class="highlight"></span>
           <span class="bar"></span>
           <label id="message-label" for="message">Message</label>
        </div>
        <div>
          <button class="btn btn-primary" type="submit">Send</button>
        </div>
      </form>
    </section>
  </main>
  <footer>
    <div class="row">
      <div id="about-page" class="col-md-6">
        <h3 class="text-center">About this page</h3>
        <p class="text-center">Made with <i class="fa fa-music"></i> and <i class="fa fa-heart"></i> by <a target="_blank" href="https://github.com/CrisBarreiro">Cristina Sánchez</a></p>
      </div>
      <div id="find-me" class="col-md-6">
        <h3 class="text-center">Find me at</h3>
        <ul class="text-center">
          <a target="_blank" href="https://linkedin.com/in/CrisBarreiro"><i class="fa fa-fw fa-linkedin"></i></a>
          <a target="_blank" href="https://twitter/CrisBarreiro"><i class="fa fa-fw fa-twitter"></i></a>
           <a target="_blank" href="https://github.com/CrisBarreiro"><i class="fa fa-fw fa-github"></i></a>
        <ul>
      </div>
    </div>
  </footer>
</body>
              
            
!

CSS

              
                $fargglad:#722872;
$morkfarg:#592059;
$morkgra:#888;

body{
  margin:0;
  padding-top: 80px;
  color:#666;
  background:#888;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 20px;
  position: relative;
}

header{
  text-align: right;
  height: 80px;
  padding: 0 80px;
  width: 100%;
  top: 0px;
}

nav{
  font-size: 13px;
  background:black;
  padding: 0 200px;
}

nav>ul>li{
  height:100%;
  text-transform:uppercase;
  font-weight:bold;
  letter-spacing:2px;
  display:inline-flex;
  padding: 20px 0;
}

nav>ul>li>a{
  color:#f5f5f5;
  padding:10px 20px;
  text-decoration: none;
}

nav>ul>li>a:hover {
  background:#bbb;
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

nav>ul>li>a:active {
  background:#bbb;
   box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

nav>img {
  height:50px;
  margin:15px 0;
  float: left;
  border-radius: 50%;
}

section {
  margin: 0 200px;
  padding: 30px 30px 30px 30px;
  position: relative;
}

#avatar {
  border-radius: 50%;
  width: 250px;
  float: right;
}

#about-text {
  display: inline-block;
  font-size: 20px;
}

#intro {
  float: left;
  width: 70%;
}

#about {
  display: inline-block;
  background: #ebebe0;
}
.skills {
  font-size: 1.5em;
}

h1 {
  text-transform:uppercase;
  clear: both;
}

hr.bright, hr.dark{
    margin: 40px auto 30px;
    padding: 0;
    max-width: 512px;
    border: 0;
    border-top: solid 5px;
    text-align:center;
}
  
hr.bright {
  border-color: #fff;
}
  
hr.dark {
    border-color: black;
 }

hr {
  clear: both;
}

#projects {
  background: pink;
  display: inline-block;
}

section>img{
  width: 50%;
  padding: 25px;
}

.col-2-image-l {
  float: left;
}

.col-2-image-r {
  float: right;
}

/*label {
  display: block;
  opacity: 0;
}

.form-item-filled {
  opacity: 1;
}*/

.form-item {
  position:relative; 
  margin-bottom: 35px; 
}

.input {
  font-size:18px;
  padding:10px 10px 10px 5px;
  display:block;
  width:300px;
  border:none;
  border-bottom:1px solid #757575;
  background: transparent;
}

.input:focus {
  outline: none;
}

label 				 {
  color:#999; 
  font-size:1.5em;
  font-weight:normal;
  position:absolute;
  pointer-events:none;
  left:5px;
  top:10px;
  transition:0.2s ease all; 
  -moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
}

.input:focus ~ label, .input:valid ~ label 		{
  top:-20px;
  font-size:14px;
  color: black;
  font-weight: bold;
}

.inputMaterial:focus {
  -webkit-animation:inputHighlighter 0.3s ease;
  -moz-animation:inputHighlighter 0.3s ease;
  animation:inputHighlighter 0.3s ease;
}

.inputMaterial:focus ~ .highlight {
  -webkit-animation:inputHighlighter 0.3s ease;
  -moz-animation:inputHighlighter 0.3s ease;
  animation:inputHighlighter 0.3s ease;
}

/* ANIMATIONS ================ */
@-webkit-keyframes inputHighlighter {
	from { background:#5264AE; }
  to 	{ width:0; background:transparent; }
}
@-moz-keyframes inputHighlighter {
	from { background:#5264AE; }
  to 	{ width:0; background:transparent; }
}
@keyframes inputHighlighter {
	from { background:#5264AE; }
  to 	{ width:0; background:transparent; }
}

button {
  font-size: 1.5em;
}

#contact {
  background: #ebebe0;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

footer {
  height: 120px;
  background: black;
  color: white;
  margin-bottom: 0;
}

#about-page {
  float-left;
}

#find-me {
  float-right;
}

.fa-linkedin, .fa-twitter, .fa-github{
  font-size: 3em;
}


              
            
!

JS

              
                $(document).ready(function(){
    $('a[href^="#"]').click(function(e) {
        e.preventDefault();
        var target = this.hash, $target = $(target);
        $('html, body').stop().animate({
            'scrollTop': $target.offset().top-80
        }, 300, 'swing', function() {
            window.location.hash = target;
        });
    });
});
              
            
!
999px

Console