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 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

              
                
<head>
  <link href='https://fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
</head>
<body>
 <nav class="navbar navbar-default navbar-fixed-top">
   <div id="navbarCollapse" class="collapse navbar-collapse">
     <ul class="nav navbar-nav">
       <li class=""><a href="#page1">Home</a></li>
       <li class=""><a href="#page2">About</a></li>
       <li class=""><a href="#page3">Portfolio</a></li>
     </ul>
   </div>
  </nav>
  <div class="container text-center" id="page1">
    <h1 class= "text-primary col-md-12"> <b>FEDERICO VILLANI</b></h1>
    <p class="col-md-12 paragraph"> Minimalist code portfolio</p>
    <div class="row">
      <div class="col-sm-2 col-sm-offset-1 col-xs-2 col-xs-offset-3">
        <a href="https://www.freecodecamp.com/batman137" target= "_blank"><img src="https://goo.gl/VD7TWX"></a>
      </div>
      <div class="col-sm-2 col-sm-offset-2 col-xs-2">
        <a href= "https://www.facebook.com/villanifd" target= "_blank" ><img src="https://goo.gl/27bsHP"></a>
      </div>
      <div class="col-sm-2 col-sm-offset-2 col-xs-2">
        <a href= "https://www.facebook.com/villanifd" target= "_blank" ><img src=https://goo.gl/bUZCnb></a>
      </div>
    </div>
  </div>
  <div class="container" id="page2">
    <div class="row">
      <div class="col-sm-8 col-md-6">
        <h1 class="text-secundary"> <b>FEDERICO VILLANI</b></h1>
        <p class="text-secundary" id="paragraph">
          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut vulputate arcu. Integer interdum velit justo, a molestie erat interdum ac. Curabitur pretium blandit pellentesque. Vestibulum eu augue venenatis, luctus enim id, tincidunt urna. Suspendisse et nulla augue. 
        </p>
      </div>
      <div class="col-sm-4">
        <img src="https://s23.postimg.org/plrvmajff/Screenshot.png"/ id="image1">
      </div>
    </div>
  </div>
  <div class="container" id="page3">
     <div class="row  text-center">
       <div class="col-sm-4 col-md-4 prj" type="background-color: black;">
         <a href="https://codepen.io/batman137/full/vLQZJB/" target= "_blank">
           <h2><b>Code Portfolio</b></h2>
           <img class="project" src="https://s23.postimg.org/zaub7x2kr/Untitled.png"/>
         </a>
       </div>
       <div class="col-sm-4 col md-4 prj">
         <h2><b>Placeholder</b></h2>
         <img class="project" src="http://www.siprem.it/wp-content/uploads/2015/09/placeholder.jpg"/>
       </div>
       <div class="col-sm-4 col md-4 prj">
         <h2><b>Placeholder</b></h2>
         <img class="project" src="http://www.siprem.it/wp-content/uploads/2015/09/placeholder.jpg"/>
       </div>
    </div>
     
  </div>
    <div class="footer text-center">
      <h2 style="color: #eee">placeholder</h2>
    </div>
  </div>                         
</body>

              
            
!

CSS

              
                html, body {
  height: 100%;
  background: #eee;
}
.navbar {
  font-size: 4vh;
  padding-left: 4vh;
  background-color: #eee;
 
}
.container {
  height: 100vh;
  overflow-y: auto;
  
}
img {
  background: black;
  border-radius: 2px;
  height: 10vh;
  margin: -2px;

}
.text-primary {
  color: black;
  line-height: 0.1;
  font-family: Lato;
  padding-top: 30vh;
  font-size: 12vh;
  
}
.container .paragraph  {
  font-size: 7.5vh;
  letter-spacing: 1.2vh;
  padding-left: 4vh;
  font-family: "Lato", sans;
}
#page2{
  background: black;
  width: 100%;

}
.text-secundary {
  color: #eee;
  font-family: "Lato";
  padding-top: 10vh;
  padding-left: 8vh;
  font-size: 8vh;
}
#paragraph {
  font-size: 5vh;
}
#page3 {
  background: #eee;
  height: 80vh;
  
}
#image1 {
  width: 50vh;
  height: 65vh;
  padding-top: 30vh;
}

.footer {
  background-color: black;
  width: 100%;
  height: 20vh;
  padding-top: 2vh;
}
.project {
  width: 38vh;
  height: 25vh;
  border: 4px dotted black;
}
h2 {
  font-family: Lato;
  color: black;
}
.prj {
  padding-top: 20vh;
}
              
            
!

JS

              
                $(function(){
  $("#nav a").click(function(e){
    e.preventDefault();
    $('html,body').scrollTo(this.hash,this.hash); 
  });
});
              
            
!
999px

Console