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 rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
</head>
<body data-spy="scroll" data-target=".navbar" data-offset="50">
  
  <!--Navigation Bar -->
  
  <nav class="navbar navbar-default navbar-fixed-top" >
    <div class="container-fluid">
    <div class="navbar-header navbar-left">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#home"> &lt;/&gt;Nikhil Singh</a>
      </div>
       <div class="collapse navbar-collapse" id="navbar-collapse-1">
    <ul class="nav navbar-nav navbar-right">
      <li class="active"><a href="#home">Home</a></li>
      <li><a href="#about">About</a></li>
      <li><a href="#projects">Projects</a></li>
      <li><a href="#myinterests">My Interests</a></li>
      <li><a href="#contact">Contact Me</a></li> 
    </ul>
    </div>
  </div>
</nav>
  
 <!-- Thats it for Navigation Bar :D -->
  
<!-- Now Design of home -->
  <div id="home" class="container-fluid">
    
  <h1 class="main-header">Nikhil Singh</h1>
  <h1>I convert Caffeine to Code</h1>
</div>
  
  <!-- End of house(home) lol shit joke, Nik smh!-->
  

  <!-- About begins-->
<div id="about" class="container-fluid">
  <div class="col-sm-10 col-sm-offset-1">
  <div class="row">
    <div class="col-sm-6">
      <h1>About</h1>
      <h4>I am Nikhil Singh, A 17 year old high school Senior based out of Pune, India. My Interests include Programming, Designing websites/apps, Blogging ,Football and Fifa. I am a self taught programmer who is preparing for stepping into college next fall. </h4>
      <h4>My areas of expertise include</h4>
      <div class="skill-buttons">
        <button class="skills">HTML5</button>
        <button class="skills">CSS</button>
        <button class="skills">Bootstrap</button>
        <button class="skills">jQuery</button> 
        <button class="skills">JavaScript</button> 
        <button class="skills">C++</button> 
        <button class="skills">Python</button> 
        <button class="skills">Algorithms</button> 
      </div>
    </div>
    <div class="col-sm-4 col-sm-offset-1">
      <img src="https://i.imgur.com/MS40aK1.jpg" id="profile" class="img-responsive">
    </div>
  </div>
  </div>
</div>
<!-- About ends-->
  
  <!-- Projects -->
  <div id="projects" class="container-fluid"
       <div="row">
    <div class="col-sm-10 col-sm-offset-1">
      <h1>Projects</h1>
      <br>
      <div class="row">
          
      <!--Project 1 well starts-->
       <div class="col-sm-6" align="center">
        <div class="well">
          <img src="http://stuffdeck.com/wp-content/uploads/2016/11/rsz_1stuffdeck___quality_at_your_tips.jpg" class="img-responsive portfolio-img">
          <h4><br>Project 1</h4>
          <p>Created a user friendly blog using wordpress APi's and a sample theme. I blog about Technology and Sports on there.</p>
          <button class="small-skills">HTML5</button>
          <button class="small-skills">CSS</button>
          <button class="small-skills">Bootstrap</button>
        </div>
      </div>
      <!--Project 1 well ends-->
        
        <div class="col-sm-6" align="center">
        <div class="well">
          <img src="http://stuffdeck.com/wp-content/uploads/2016/11/CodePen-A-Pen-by-Nikhil-Singh.jpeg" class="img-responsive portfolio-img">
          <h4><br>Project 2</h4>
          <p> Created this project as part of the curriculum at freecodecamp.com, It was the very first project, A tribute page to Steve Jobs.</p>
          <button class="small-skills">HTML5</button>
          <button class="small-skills">CSS</button>
          <button class="small-skills">jQuery</button>
        </div>
      </div>
      <!--Project 2 well ends-->
        <div id="My Interests" class="container-fluid">
  <div="row">
    <div class="col-sm-10 col-sm-offset-1">
  <h1>My Interests</h1>
      <br>
      <p> I like programming and building stuff as well as enjoy watching football every weekend. Due to tight schedule, I couldn't manage playing anymore :D . Do check out my Linkedin Profile for all my certifications and acheivements from Coursera, Edx and Freecodecamp. </p>
      </div>
  </div>
</div>
        <div id="contact" class="container-fluid">
  <div="row">
    <div class="col-sm-10 col-sm-offset-1">
      <h1>Contact</h1>
      <div class="row">
        <div class="col-sm-4">
         
        </div>
        <div class="col-sm-8">
          <div class="form-group input-group">
          <form>
          <input type="text" name="name" placeholder="Name" class="name">
          <input type="text" name="email" placeholder="Email">
          <input type="text" name="number" placeholder="Number">
          <br>
            <textarea placeholder="Message"></textarea>
          <br>
          <div class="submit-style">
          <input type="submit" name="submit">
            </div>
          </form>
          </div>
        </div>
    </div>
  </div>
  </div>
           <div class="col-sm-10 col-sm-offset-1">
  
             <h4>Connect with me on <a target='_blank'  class="contact" href="https://in.linkedin.com/in/nikhil-singh7">Linkedin</a> or contact me on Social media below.Also view all my projects on <a target='_blank'  href="https://www.freecodecamp.com/nikhilmufc7">Freecodecamp.com </a> </h4>
             <hr>

     	<footer>
<div class="navbar-text pull-right"></div>
    <a  target='_blank' href="https://plus.google.com/+Nikhilmufc"><i class="fa fa-google-plus fa-3x"></i></a>
        
        <a href="#"><i class="fa fa-twitter fa-3x"></i></a>
        	
<a  target='_blank'href="https://www.facebook.com/officialNikhilSingh"><i class="fa fa-facebook-square fa-3x"></i></a>
      <a  target='_blank'href="https://in.linkedin.com/in/nikhil-singh7">  <i class="fa fa-linkedin-square fa-3x" aria-hidden="true"></i>
      <a  target='_blank'href="https://www.instagram.com/nikblogs">  <i class="fa fa-instagram fa-3x" aria-hidden="true"></i>
       <a  target='_blank'href="https://github.com/nikhilmufc7"> <i class="fa fa-github fa-3x" aria-hidden="true"></i>
       <a  target='_blank'href="https://www.freecodecamp.com/nikhilmufc7"><i class="fa fa-free-code-camp" aria-hidden="true"></i>
     </footer>
       
              
            
!

CSS

              
                body {
  padding-top: 50px; /* Fixes Navbar overlay problem*/
  position: relative;
  font-family: 'Ubuntu', sans-serif;
  color: Black;
}

/* Block styles begin */

#home {
  height: 100vh;
  background-image: url("http://stuffdeck.com/wp-content/uploads/2016/11/rsz_free-san-francisco-golden-area.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  margin: auto;
  text-align: center;
  padding: 50px;
  position: relative
 
  
}

#about {
  background-color: #e6e6e6;
  padding-top: 15px;
  padding-bottom: 15px;
}

#projects {
  background-color: #cccccc;
}

#myinterests {
  background-color: #e6e6e6;
  font-size: 16px;
  
}

#contact {

  background-image: url("http://stuffdeck.com/wp-content/uploads/2016/11/rsz_free-san-francisco-golden-area.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  margin: auto;
  text-align: left;
}

.footer-social { 
    display: block;
    text-align: center;
    background-color: #ffffff;
    height: 35vh;

}

/* Block styles end */

/* Fonts, images, etc begin */

#profile {
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  max-width: 300px;
  margin: auto;
}

.headshot {
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  max-width: 200px;
  display: block;
  margin: auto;
  width: 70%;
  margin-bottom: 20px;
}

.skills {
  border-radius: 10px;
  border: 1px solid;
  border-color: #cccccc;
  background: white;
  font-size: 14px;
  padding: 5px 24px;
  margin: 2px;
}

.small-skills {
  border-radius: 8px;
  border: 1px solid;
  border-color: #cccccc;
  background: #e6e6e6;
  font-size: 10px;
  padding: 5px 10px;
}

.projects-img:hover {
-moz-box-shadow: 0 0 20px #a6a6a6; 
  -webkit-box-shadow: 0 0 20px #a6a6a6;
  box-shadow: 0 0 20px #a6a6a6;
}

.logo {
    display: block;
    margin: auto;
    width: 70%;
    margin-bottom: 00px;
    max-width: 200px;
}

input {
    width: 32%;
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 6px;
    border: 0px;
}

form {
  text-align: center;
}

.submit-style {
    margin: 0px 8px 0px 0px;
    text-align: right;
}

textarea {
    width: 97.5%;
    height: 200px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 0px;
    border-radius: 6px;
    background-color: #ffffff;
    resize: none;
}

h1 {
  font-family: 'Permanent Marker', cursive;
  color: black;
  text-shadow: 1px 1px #ffffff;
  font-size: 300%;
}

.main-header {
  font-family: 'Permanent Marker', cursive;
  color: black;
  text-shadow: 1px 1px #ffffff;
  font-size: 600%;
}

.navbar-brand {
    font-family: 'Permanent Marker', cursive;
    font-size: 200%;
}

a:link {
    color: black;
}

a:visited {
    color: black;
}

a:hover {
    color: #3972ab;
}

.skill-buttons {
  text-align: center;
}
.contact {
  color: Red;
}

/* Fonts, images, etc end */
              
            
!

JS

              
                window.addEventListener("hashchange", function() { scrollBy(0, -50) })

              
            
!
999px

Console