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

              
                <body>
  <div class="navbar navbar-default navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">


        <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>

        </button>
      </div>

      <div class="collapse navbar-collapse navHeaderCollapse">

        <ul class="nav navbar-nav navbar-right">
          <li class="current"><a href="#home">Home </a></li>
          <li><a href="#about">About</a></li>
          <li><a href="#contact">Contact</a></li>
        </ul>
      </div>
    </div>
  </div>

  <div class="container">
    <div id="home">
      <div class="row">
        <div class="col-md-12">
          <h1>Home</h1>
          <p>Hello there, I’m glad to welcome you to my website! For those who don’t know me, my name is Rawad Merhi. I have written a small story about who I am, what my passion is and how I decided to become a Web Designer & Developer. If you would like
            to discover more about my background then, I invite you to continue reading below… When I was young, I always spent a lot of time on the computer. I was always so hooked to them that, at some point I realized I wanted to dedicate my career
            to computers. I had no idea what I was going to do, but I knew It was going to be something related to computer science; and so, as I got older, It was time to apply for college and choose my career path as a Web Designer & Developer.</p>


          <p>Hello there, I’m glad to welcome you to my website! For those who don’t know me, my name is Rawad Merhi. I have written a small story about who I am, what my passion is and how I decided to become a Web Designer & Developer. If you would like
            to discover more about my background then, I invite you to continue reading below… When I was young, I always spent a lot of time on the computer. I was always so hooked to them that, at some point I realized I wanted to dedicate my career
            to computers. I had no idea what I was going to do, but I knew It was going to be something related to computer science; and so, as I got older, It was time to apply for college and choose my career path as a Web Designer & Developer.</p>


          <p>Hello there, I’m glad to welcome you to my website! For those who don’t know me, my name is Rawad Merhi. I have written a small story about who I am, what my passion is and how I decided to become a Web Designer & Developer. If you would like
            to discover more about my background then, I invite you to continue reading below… When I was young, I always spent a lot of time on the computer. I was always so hooked to them that, at some point I realized I wanted to dedicate my career
            to computers. I had no idea what I was going to do, but I knew It was going to be something related to computer science; and so, as I got older, It was time to apply for college and choose my career path as a Web Designer & Developer.</p>
        </div>
      </div>
    </div>


    <div id="about">
      <div class="row">
        <div class="col-md-12">
          <h1>About</h1>
          <p>When I first applied to NAIT, I decided to take the Networking route which lasted about two years. Within those two years, I began noticing that Networking wasn’t the career I wanted to pursue; I had to find something very quickly and thankfully
            I found Web Design. Although I had to stay in college for 2 extra years to receive my diploma, It was all worth it in the end. Ever since graduation, I have been keeping myself busy and enjoying what I do best: coding and designing websites.
            Now with that being said, I’m looking forward to whatever is next for me in the computer industry. I am always ready to challenge myself to create more innovative computer projects and make more sophisticated designs.</p>

          <p>When I first applied to NAIT, I decided to take the Networking route which lasted about two years. Within those two years, I began noticing that Networking wasn’t the career I wanted to pursue; I had to find something very quickly and thankfully
            I found Web Design. Although I had to stay in college for 2 extra years to receive my diploma, It was all worth it in the end. Ever since graduation, I have been keeping myself busy and enjoying what I do best: coding and designing websites.
            Now with that being said, I’m looking forward to whatever is next for me in the computer industry. I am always ready to challenge myself to create more innovative computer projects and make more sophisticated designs.</p>

          <p>When I first applied to NAIT, I decided to take the Networking route which lasted about two years. Within those two years, I began noticing that Networking wasn’t the career I wanted to pursue; I had to find something very quickly and thankfully
            I found Web Design. Although I had to stay in college for 2 extra years to receive my diploma, It was all worth it in the end. Ever since graduation, I have been keeping myself busy and enjoying what I do best: coding and designing websites.
            Now with that being said, I’m looking forward to whatever is next for me in the computer industry. I am always ready to challenge myself to create more innovative computer projects and make more sophisticated designs.</p>


        </div>
      </div>
    </div>

    <div id="contact">
      <div class="row">
        <div class="col-md-12">
          <h1>Contact</h1>
          <p>When I first applied to NAIT, I decided to take the Networking route which lasted about two years. Within those two years, I began noticing that Networking wasn’t the career I wanted to pursue; I had to find something very quickly and thankfully
            I found Web Design. Although I had to stay in college for 2 extra years to receive my diploma, It was all worth it in the end. Ever since graduation, I have been keeping myself busy and enjoying what I do best: coding and designing websites.
            Now with that being said, I’m looking forward to whatever is next for me in the computer industry. I am always ready to challenge myself to create more innovative computer projects and make more sophisticated designs.</p>

          <p>When I first applied to NAIT, I decided to take the Networking route which lasted about two years. Within those two years, I began noticing that Networking wasn’t the career I wanted to pursue; I had to find something very quickly and thankfully
            I found Web Design. Although I had to stay in college for 2 extra years to receive my diploma, It was all worth it in the end. Ever since graduation, I have been keeping myself busy and enjoying what I do best: coding and designing websites.
            Now with that being said, I’m looking forward to whatever is next for me in the computer industry. I am always ready to challenge myself to create more innovative computer projects and make more sophisticated designs.</p>

          <p>When I first applied to NAIT, I decided to take the Networking route which lasted about two years. Within those two years, I began noticing that Networking wasn’t the career I wanted to pursue; I had to find something very quickly and thankfully
            I found Web Design. Although I had to stay in college for 2 extra years to receive my diploma, It was all worth it in the end. Ever since graduation, I have been keeping myself busy and enjoying what I do best: coding and designing websites.
            Now with that being said, I’m looking forward to whatever is next for me in the computer industry. I am always ready to challenge myself to create more innovative computer projects and make more sophisticated designs.</p>


        </div>
      </div>
    </div>
  </div>
              
            
!

CSS

              
                .navbar-default .navbar-nav > li.current > a {
  color: #333;
}

h1 {
  margin-top: 50px;
}
              
            
!

JS

              
                $(document).ready(function() {
  $('.nav').onePageNav({
    changeHash: true,
    scrollSpeed: 750
  });
})
              
            
!
999px

Console