css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm 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. We'll also process your JavaScript with Babel.

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

Code Indentation

     

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.

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>
  <div class="container-fluid row">
    <div class="row">
      <div class="col-xs-8 mainpage border shadow">
        <div class="row text-center">
          <div id="information" class="info">
            <br>
            <h2><b>About me</b></h2>
            <p>My name is Bas ter Hedde. Currently I am a student, learning how to program HTML, CSS and Javascript. I am also attending a course to get my Oracle Certified Associate Certificate.</p>
            <br><br>
          </div>
          <div id="line" class="line shadow"></div>
          <div id="portfolio" class="bottom-border">
            <h2><b>Portfolio</b></h2>
            <div class="row">
              <div class="col-xs-6">
                <h3>Hex-code generator</h3>
                <a href="https://codepen.io/basterhedde/pen/YWWgVv" target="blank"><img src="http://scontent-ams3-1.xx.fbcdn.net/v/t1.0-9/13418855_134612986960803_4595476180797497286_n.jpg?oh=5ce7db20cdbdd804d08980491273a836&oe=57E64FBE" class="border thumbnail shadow"></a>
              </div>
              <div class="col-xs-6">
                <h3>Muse Tribute Page</h3>
                <a href="https://codepen.io/basterhedde/pen/MejWzb" target="blank"><img src="http://www.vanzz.nl/wp-content/uploads/2016/02/Muse-muse-25184501-1206-789.jpg" class="border thumbnail shadow"></a>
              </div>
              <div class="col-xs-6">
                <h3>Joke Generator</h3>
                <a href="https://codepen.io/basterhedde/pen/YWGxKd" target="blank"><img src="https://scontent-ams3-1.xx.fbcdn.net/v/t1.0-9/13501934_135482126873889_2084730930666983553_n.jpg?oh=2d27e49656509dce0f1298916dbad84f&oe=57D57326" class="border thumbnail shadow"></a>
              </div>
              <div class="col-xs-6">
                <h3>WeatherApp</h3>
                <a href="https://codepen.io/basterhedde/pen/VjmwxQ" target="blank">
                  <img src="https://scontent-ams3-1.xx.fbcdn.net/v/t1.0-9/13654290_152659501822818_3453665909038513073_n.jpg?oh=1e3b0746de287a781b1fabe95e37c030&oe=582E51D5" class="border thumbnail shadow"></a>
              </div>
              <div class="col-xs-6">
                <h3>WikiPage Viewer</h3>
                <a href="https://codepen.io/basterhedde/pen/dXNLLg" target="blank">
                  <img src="https://scontent-ams3-1.xx.fbcdn.net/v/t1.0-9/13620014_152657711822997_2253255999621474231_n.jpg?oh=9b3a9cde1e86c0381bef0e9dfe635ea0&oe=583156EC" class="border thumbnail shadow"></a>
              </div>
              <div class="col-xs-6">
                <h3>Twitch.tv Streamerpage</h3>
                <a href="https://codepen.io/basterhedde/pen/dXVamz" target="blank">
                  <img src="https://scontent-amt2-1.xx.fbcdn.net/v/t1.0-9/13901573_166578503764251_1150808322858257345_n.jpg?oh=f462cf155f7263342d4cb8fc5617b49f&oe=5823604E" class="border thumbnail shadow"></a>
              </div>
            </div>
          </div>
          <div id="contact" class="">
            <h2><b>Contact</b></h2>
            <p>If you wish to contact me, submit using the form.</p>
            <div class="col-xs-12">
              <form action="MAILTO: basterhedde@gmail.com" method="post" enctype="text/plain">
                <input type="text" name="submit-name" placeholder="Name">
                <input type="text" name="submit-email" placeholder="Email">
                <input type="text" name="submit-topic" placeholder="Topic?">
                <textarea id="question" type="text" name="submit-question" placeholder="Your question?"></textarea><br><br>
                <input type="submit" name="submit-form" value="Send">
              </form><br><br><br><br>
            </div>
            <div class="row">
              <div class="col-xs-12">
                <p>Or you can always contact me through social media.</p><br>
                <a href="#">Back to top</a>
              </div>
            </div>
            <br><br>
          </div>
        </div>
      </div>
    </div>
    <div id="footer" class="col-xs-12 footer1 shadow">
      <div class="footerbox">
        <p style="color: #F5F5FF">Made with ☕ , 🎵 and 🎸 by Bas ter Hedde©</p>
      </div>
    </div>

    <div id="banner" class="col-xs-12 banner text-center shadow">
      <div class="row">
        <div class="col-xs-6 img-box">
          <img class="img-top" src="http://scontent-ams3-1.xx.fbcdn.net/t31.0-8/s960x960/13392311_114551478966954_4832597030435877696_o.jpg">
          <h1>Coded by Bth</h1>
        </div>
      </div>
    </div>
    <div id="nav" class="col-xs-12 navbar1 shadow">
      <div class="col-xs-8 col-xs-offset-2 navbarbox">
        <button id="button3" class="button1 borderstyle"><b>Contact</b></button>
        <button id="button2" class="button1 borderstyle"><b>Portfolio</b></button>
        <button id="button1" class="button1 borderstyle"><b>About</b></button>
        <a class="float-a" href="https://www.facebook.com/basterhedde" target="blank"><i class="fa fa-facebook-official"></i></a>
        <a class="float-a" href="https://nl.linkedin.com/in/bas-ter-hedde-7a2b07b5" target="blank"><i class="fa fa-linkedin-square"></i></a>
        <a class="float-a" href="https://github.com/basterhedde" target="blank"><i class="fa fa-github-square"></i></a>
      </div>
    </div>
  </div>
</body>
            
          
!
            
              /*Body style:*/

body {
  background-color: white;
  overflow-y: scroll;
  overflow-x: hidden;
}


/*Styling of text and boxes:*/

h1 {
  color: rgba(0, 0, 0, 0.6);
  font-family: Cabin;
  text-align: right;
  float: right;
  margin-top: 80px;
}

h2 {
  font-family: Cabin;
  font-size: 40px;
  color: rgba(0, 0, 0, 0.5);
}

h3 {
  color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  font-family: Cabin;
}

p {
  font-family: Cabin;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.5);
}

.thumbnail {
  float: left;
  height: 300px;
  width: 400px;
  margin-left: 40px;
  margin-right: 20px;
}

.border {
  border: 2px solid black;
  border-color: rgba(0, 0, 0, 0.1);
}

.shadow {
  box-shadow: 0px 1px 5px #000000;
}

.float-a {
  float: left;
  cursor: pointer;
  margin: -10px 5px 0px 10px;
  color : #B7B7B7;
  font-size: 40px;
}

ul {
  list-style-type: none;
}

.img-top {
  height: 190px;
  border-style: hidden;
  border-radius: 20px;
  margin: 5px;
  float: left;
}

.footerimgs {
  height: 30px;
  widht: 30px;
  opacity: 0.7;
}


/*Form CSS:*/

input[type=text] {
  border: none;
  height: 50px;
  width: 50%;
  background-color: #F5F5FF;
  margin-top: 20px;
  display: inline-box;
  padding: 10px;
  outline: none;
  border-top: solid 2px #000000;
}

textarea#question {
  height: 100px;
  width: 50%;
  margin: auto;
  display: block;
  resize: none;
  margin-top: 20px;
  display: inline-box;
  padding: 10px;
  border: none;
  border-top: solid 2px #000000;
  background-color: #F5F5FF;
  outline: none;
}

input[type=submit] {
  cursor: pointer;
}


/*Defining the buttons:*/

.button1 {
  float: right;
  height: 40px;
  margin-bottom: 0px;
  padding: auto;
  outline: none;
  font-family: Cabin;
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  display: outline-block;
  border: none;
}

.borderstyle {
  border: 5px solid #333d3f;
  border-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.button1:focus {
  background-color: white;
  box-shadow: inset 1px 1px 10px #000000;
  transition: 0.8s;
}


/*Defining the sizes and shapes of boxes:*/

.banner {
  position: fixed;
  padding: 0px;
  height: 200px;
  width: 100%;
  background-color: #B7B7B7;
  top: 0px;
}

.img-box {
  float: none;
  width: 1000px;
  height: 200px;
  margin: auto;
  padding: 0px;
}

.navbar1 {
  position: fixed;
  background-color: #253F56;
  top: 200px;
  height: 60px;
  width: 100%;
  padding: 5px;
}

.navbarbox {
  float: none;
  width: 1000px;
  height: 60px;
  margin: auto;
  padding: 5px;
}

.mainpage {
  background-color: #F5F5FF;
  float: none;
  top: 260px;
  bottom: 60px;
  margin: auto;
  width: 1000px;
  height: 100%;
}

.line {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.3);
}

.info {
  background-color: #FFFFC1;
  width: 100%;
  border-style: hidden;
  box-shadow: 0px 1px 5px #000000;
}

.footer1 {
  height: 60px;
  background-color: #253F56;
  top: 260px;
  bottom: 0px;
}

.linkbox {
  height: 40px;
  width: 100%;
}

.footerbox {
  width: 1000px;
  height: 60px;
  margin: auto;
  padding: 15px;
}

.bottom-border {
  border-bottom: 1px solid rgba(0,0,0,0.3);
}
            
          
!
            
              $('document').ready(function() { 
  
  $(window).scroll(function(){

  var about = $('#information').offset().top - 265;
  var portfolio = $('#portfolio').offset().top - 265;
  var contact = $('#contact').offset().top - 265; 
  var bodypos = $('body').scrollTop();

    if( bodypos >= 0 && bodypos < portfolio){
      
      $('#button1').focus();
      
    } else if(bodypos > portfolio && bodypos < contact -400) {
      
      $('#button2').focus();
      
    } else {
      
      $('#button3').focus();
      
    }
    
  });
  
  
  $('#button1').on('click', function() {
    $('html,body').animate({
      scrollTop: $('#information').offset().top
     - 260}, 500);
  });
  
  $('#button2').on('click', function() {
    $('html,body').animate({
      scrollTop: $('#portfolio').offset().top
     - 260}, 500);
    
  });
  
  $('#button3').on('click', function() {
    $('html,body').animate({
      scrollTop: $('#contact').offset().top
     - 260}, 500);
  });
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console