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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

              
                <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />

<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700|Roboto+Slab|Roboto:700,400,300,100|Lato:700,400,300|Raleway:200,400,500' rel='stylesheet' type='text/css'>


<div class="first-page">
  <a id="Home">
  </a>
  <div class="nav">
    <ul>
      <li><a id="pkmain" href="#Home">Philip Krück</a></li>
      <li><a id="Home" href="#Home">Home</a></li>
      <li><a href="#About">About</a></li>
      <li><a href="#Portfolio">Portfolio</a></li>
      <li><a href="#Contact">Contact</a></li>
    </ul>
  </div>
  <div class="title">
    <h1>Web development solutions</h1>
    <p>Where functionality meets design</p>
  </div>
  <div class="line-seperator "></div>
  <div class="social-media ">
    <a href="https://twitter.com/pkrueck" target="_blank" class="btn btn-social btn-twitter ">
      <span class="fa fa-twitter "></span> Follow me on Twitter
    </a>
    <a href="https://www.instagram.com/philipkrueck/ " target="_blank" class="btn btn-social btn-instagram ">
      <span class="fa fa-instagram "></span> Follow me on Instagram
    </a>
    <a href="https://www.linkedin.com/profile/preview?locale=de_DE&trk=prof-0-sb-preview-primary-button " target="_blank" class="btn btn-social btn-linkedin ">
      <span class="fa fa-linkedin "></span> Follow me on linkedIn
    </a>
    <a href="https://github.com/pkrueck " target="_blank" class="btn btn-social btn-github ">
      <span class="fa fa-github "></span> Follow me on GitHub
    </a>
    <a href="https://www.freecodecamp.com/pkrueck " target="_blank" class="btn btn-social btn-fire ">
      <span class="fa fa-fire "></span> Follow me on FreeCodeCamp
    </a>
  </div>
</div>

<div class="second-page">
  <a id="About">
  </a>
  <div class="box">
    <p>My name is Philip Krück and I'm 17 years old. I'm learning to become a full stack front end developer. I'm interested in coding and designing websites. My skills include: html5, css3, JavaSript, jQuery and Bootstrap.</p>
  </div>
  <img class="my-face" src="https://res.cloudinary.com/dvtm5i1uw/image/upload/v1467405649/image1_fbapkp.jpg" />
  <div class="skill-img"><img src="https://www.planet-source-code.com/vb/2010Redesign/images/LangugeHomePages/HTML5_CSS_JavaScript.png" alt="" /></div>
</div>

<div class="third-page row">
  <a id="Portfolio"></a>
  <h2>Portfolio</h2>
  <h3 class="my-portfolio-header">My Projects</h3>
  <div class="row">
    <div class="col-sm-4 col-md-2 first-project">
      <div class="thumbnail">
       <a href="https://codepen.io/pkrueck/full/XKOmgd/" target="_blank"><img src="http://i65.tinypic.com/2i9ggo3.jpg" border="0" alt="Image and video hosting by TinyPic"></a>
        <div class="caption">
          <h3>Random Quote Machine</h3>
          <p>In this project I built a random quote machine with some cool quotes and changing colours</p>
          <p><a href="https://codepen.io/pkrueck/full/XKOmgd/" target="_blank" class="btn btn-primary" role="button">Go to pen</a></p>
        </div>
      </div>
    </div>
    <div class="col-sm-4 col-md-2">
      <div class="thumbnail">
        <img src="http://www.pacinno.eu/wp-content/uploads/2014/05/placeholder-Copy.png" alt="...">
        <div class="caption">
          <h3>Project 2</h3>
          <p>...</p>
          <p><a href="#" class="btn btn-primary" role="button">Button</a></p>
        </div>
      </div>
    </div>
    <div class="col-sm-4 col-md-2">
      <div class="thumbnail">
        <img src="http://www.pacinno.eu/wp-content/uploads/2014/05/placeholder-Copy.png" alt="...">
        <div class="caption">
          <h3>Project 3</h3>
          <p>...</p>
          <p><a href="#" class="btn btn-primary" role="button">Button</a></p>
        </div>
      </div>
    </div>
    <div class="col-sm-4 col-md-2">
      <div class="thumbnail">
        <img src="http://www.pacinno.eu/wp-content/uploads/2014/05/placeholder-Copy.png" alt="...">
        <div class="caption">
          <h3>Project 4</h3>
          <p>...</p>
          <p><a href="#" class="btn btn-primary" role="button">Button</a></p>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="fourth-page ">
  <a id="Contact"></a>
  <img src="http://www.livingknowledge.org/lk7/wp-content/uploads/2016/06/Photo_contact-us_springslife.org_.jpg" alt="" />
  <div class="contact-box">
    <ul>
      <li><a href="">Tel: 0123456789</a></li>
      <li><a href="">eMail: asdjasdklöfj@gmail.com</a></li>
      <li><a href="">idk: asldökfjas way 21</a></li>
    </ul>
    <div class="social-media-buttons">
      <a href="https://twitter.com/pkrueck" target="_blank" class="btn btn-social-icon btn-twitter">
        <span href="https://twitter.com/pkrueck" class="fa fa-twitter"></span></a>
      <a href="https://www.instagram.com/philipkrueck/" target="_blank" class="btn btn-social-icon btn-instagram">
        <span class="fa fa-instagram"></span></a>
      <a href="https://www.linkedin.com/profile/preview?locale=de_DE&trk=prof-0-sb-preview-primary-button" target="_blank" class="btn btn-social-icon btn-linkedin">
        <span class="fa fa-linkedin"></span></a>
      <a href="https://github.com/pkrueck" target="_blank" class="btn btn-social-icon btn-github">
        <span class="fa fa-github"></span></a>
      <a href="https://www.freecodecamp.com/pkrueck" target="_blank" class="btn btn-social-icon btn-fire">
        <span class="fa fa-fire"></span></a>
    </div>
  </div>
</div>

<div class="last">
  <p>Written and designed by Philip Krück. All right reserved</p>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,900);
@import url(https://fonts.googleapis.com/css?family=Oleo+Script);
@import "//netdna.bootstrapcdn.com/font-awesome/3.0/css/font-awesome.css";
@import "compass/css3";
@import "bootstrap-social.less";
body {
  font-family: 'Source Sans Pro', Sans Serif;
}

/*First page CSS */
.first-page {
  border-top: 0px;
  background: url("https://wallpaperscraft.com/image/ laptop_apple_white_black_open_reflection_33645_1920x1080.jpg");
  background-size: cover;
  min-height: 100vh;
}

.nav {
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  margin-top: 0px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 99999;
}

.nav ul {
  margin: 0;
  padding: 0;
}

.nav ul li {
  list-style: none;
}

.nav ul li a {
  font-size: 20px;
  text-decoration: none;
  float: left;
  display: block;
  padding: 10px 20px;
  color: black;
}

.active {
  background-color:#556677;
}

.title {
  position: relative;
  top: 100px;
  color: white;
  text-align: center;
}

.title h1 {
  margin: 0px;
  text-transform: uppercase;
  font-size: 7rem;
}

.title h2 {
  margin: 0px;
  font-size: 4rem;
}

.title p {
  margin-top: 50px;
  font-size: 4rem;
  font-family: 'Oleo Script';
}

.line-seperator {
  margin-top: 30%;
  margin-left: 15%;
  margin-right: 20%;
  align-center;
  height: 1%;
  border: background: #ffffff;
  border-bottom: 1px solid white;
  color: white;
  width: 70%;
}

.social-media {
  margin-left: 22.5%;
}

.btn-social {
  width: 200px;
  margin-top: 30px;
  margin-right: 20px;
  color: white;
  font-family: 'Source Sans Pro', Sans Serif;
}

.btn-twitter {
  background-color: #55ACEE;
}

.btn-instagram {
  background-color: #3F729B;
}

.btn-github {
  background-color: #DD4B39;
}

.btn-linkedin {
  background-color: #007BB6;
}

.btn-fire {
  background-color: #529C27;
}


/* Second page CSS */
.second-page {
  background-color: #848484;
  background-size: cover;
  min-height: 100vh;
}

.box {
  float: left;
  margin-top: 5%;
  margin-left: 5%;
  height: 40%;
  width: 40%;
  border: 3px solid black;
}

.second-page p {
  color: black;
  text-align: left;
  font-size: 40px;
}

.skill-img {
  margin-left: 5%;
  width: 25%;
  height: 25%;
}

.my-face {
  float: left;
  height: 60%;
  width: 25%;
  margin-top: 5%;
  margin-left: 15%;
  border-radius: 50%;
  border: 10px solid #fff;
}

/*Third page CSS*/
.third-page {
  background-color: #3d3d3d;
  background-size: cover;
  min-height: 100vh;
}

.third-page h2 {
  font-size: 60px;
  text-align: center;
  color: white;
  text-decoration: underline;
}

.my-portfolio-header {
  font-size: 40px;
  text-align: center;
  color: white;
}

.first-project {
  margin-left: 17.5%;
}

.thumbnail {
  float: left;
  margin-right: 5%;
    margin-top: 30%;
}


/*Fourth page CSS*/
.fourth-page {
  background-color: gray;
  background-size: cover;
  height: 30vh;
}

.fourth-page img {
  position: relative;
  left: 20%;
  top: 5%;
  height: 100%;
  width: 20%;
}

.contact-box {
  color: white;
  position: relative;
  height: 80%;
  width: 20%;
  border: 2px solid black;
  left: 50%;
  top: -90%;
}

.contact-box ul {
  margin: 0;
  padding: 0;
}

.contact-box ul li {
  list-style: none;
  margin: 10px;
}

.contact-box ul li a {
  font-size: 25px;
  color: white;
}

social-media-buttons {
  position: absolute;
}

#home {
  margin-left: 70%;
}

.last {
  margin: 0;
  height: 10%;
  background-color: black;
}

.last p {
  color: white;
  text-align: center;
}
              
            
!

JS

              
                $(document).ready(function(){
  $('nav').hover(
    function(){
        $(this).addClass('active');
    },
    function(){
        $(this).removeClass('active');
    }
  );
});

$(function () {
  $('a[href="#Home"]').click(function(e) {
    e.preventDefault();
    var targetOffset = $('a[id="Home"]').offset().top; /// <<< this is the key change, to "id" from "href"
    $('body').animate({
        scrollTop: targetOffset
      },
      1000
    );
  });
  $('a[href="#About"]').click(function(e) {
    e.preventDefault();
    var targetOffset = $('a[id="About"]').offset().top; /// <<< this is the key change, to "id" from "href"
    $('body').animate({
        scrollTop: targetOffset
      },
      1000
    );
  });
  $('a[href="#Portfolio"]').click(function(e) {
    e.preventDefault();
    var targetOffset = $('a[id="Portfolio"]').offset().top; /// <<< this is the key change, to "id" from "href"
    $('body').animate({
        scrollTop: targetOffset
      },
      1000
    );
  });
  $('a[href="#Contact"]').click(function(e) {
    e.preventDefault();
    var targetOffset = $('a[id="Contact"]').offset().top; /// <<< this is the key change, to "id" from "href"
    $('body').animate({
        scrollTop: targetOffset
      },
      1000
    );
  });
});



              
            
!
999px

Console