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

              
                <head>
<link href="https://fonts.googleapis.com/css?family=Fjalla+One|Lora|Playfair+Display|Poppins" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
</head>


<div class="container-fluid">

<div id="aboutbox">
<div class="pink-banner">
<a href="#aboutbox"><button class="btn btn-default button1"> <b>ABOUT</b> </button> </a>
<a href="#portfoliobox"> <button class="btn btn-default button2"> <b>PORTFOLIO </b> </button> </a>
<a href="#contactbox"> <button class="btn btn-default button3"> <b>CONTACT </b> </button> </a>  
</div> <!-- class="pink banner" --> 
</div> <!-- id="aboutbox" -->


<div class="pinkbox">
<h3 class="title1 text-center"> Basic Front-End developper and part-time video editor. Open to new challenges and opportunities.</h3> 
<div id="portfoliobox">
<h4 class="title2"> Business Graduate - Video Editor - Coding enthusiast. </h4> 
</div>  <!-- id="portfoliobox" -->
</div>  <!-- class="pink box" -->
  
 <img src="_blank" class="img-responsive myphoto" alt="myphoto"> 


<div class="portfoliobox">  
<h2 class="portfolio"> <b> PORTFOLIO </b> </h2>
<a href="https://codepen.io/aabla/full/bvLBzG" target="_blank"> <img src="_blank" class="mikepen" alt="photo2" class="img-responsive" > </a>
<p class="photodesc1"> Tribute page to  </p>
  
<div id="contactbox"> 
<a href="_blank" target="_blank">  <img src="_blank" class="portfolioimage" alt="portfoliopage" class="img-responsive"> </a>
</div> <!-- id="contactbox --> 
  
</div>  <!-- portfolio box -->  


<p class="photodesc2"> Portfolio Webpage </p>
<h2 class="CONTACTME"> <b> CONTACT ME </b> </h2>
  
<div class="row"> 
<div class="col-md-12" ><input type="text"  id="name" placeholder="Name" required> </div>  <!-- col-md-12 -->  

<div class="col-md-12"> <input type="email" id="email" placeholder="Email Address" required> </div>  <!-- col-md-12 --> 
  
<div class="col-md-12"> <input type="text" id="phone" placeholder="Phone Number" required> </div> <!-- col-md-12 -->
<div class="col-md-12"> <input type="text" id="message" placeholder="Message" required> </div>  <!-- col-md-12 -->
  
<div class="col-md-12">  <p class=" text-center getintouch"> Get in touch with me by filling out this form! I can answer questions related to basic front end developpment. I'm also open to making websites similar to this style for very cheap, or if you offer a service in return I can do it for free. You can also ask me about Morocco in case you were interested in a visit! </p> </div>  
  <div class="col-md-12"> <button type="submit" class="btn btn-default submit"> <b>Submit!</b> </button> </div>
</div> <!-- row --> 
  
<div class="bottombanner">
  <h4 class="aboutthispage"> <b> ABOUT THIS PAGE </b> </h4>
<p class="madeby"> Made by  <a href="_blank" target="_blank">;</a>, with <i class="fa fa-heart" style="color:pink"></i> </p>
  <h4 class="socialmedia"> <b> SOCIAL MEDIA </b> </h4>
<a href="https://www.facebook.com" target="_blank"> <i class="fa fa-facebook facebookicon"> </i> </a>
<a href="https://www.instagram.com" target="_blank"> <i class="fa fa-instagram instagramicon"> </i> </a>
 
<p> 
</div> <!-- bottom banner --> 



</div> <!-- Container fluid -->  
              
            
!

CSS

              
                .pink-banner{background-color:#e5687e;
             padding-top:40px;
             padding-bottom:40px;
             margin-top:-8px;
             position:fixed;
             width:100%;
             right:0;
             top:0;
            }
.button1{border-radius:1px;
         border-color:white;
         background-color:#e5687e;
         width:80px;
         height:40px;
         color:white;
         margin-left:890px;}


.button2{border-radius:1px;
         border-color:white;
         background-color:#e5687e;
         width:120px;
         height:40px;
         color:white;
         margin-left:15px;}

.button3{border-radius:1px;
         border-color:white;
         background-color:#e5687e;
         width:105px;
         height:40px;
         color:white;
         margin-left:15px;}

.title1{font-family:'playfair display',sans serif;
                  padding-left:60px;
                  padding-top:50px;
                  margin-right:400px;
                  margin-top:-10px;
                  margin-bottom:50px;
                 }

.title2{font-family:'playfair display',sans serif;
                 padding-left:110px;
                 margin-bottom:50px;
                 }

body{background-color:#fcfcfc;}

.pinkbox{border-style:solid;
         border-color:pink;
         border-width:2px;
         margin-top:110px;
         margin-left:250px;
         margin-right:250px;
         }

.myphoto{width:160px;
         border-radius:50%;
         margin-left:935px;
         margin-top:-210px; }

.portfolio{text-align:center;
           padding-top:15px;
           text-size:40px;
           font-family:helvetica;
           color:#e5687e;}

.portfoliobox{border-style:solid;
              border-color:pink;
              border-width:2px;
              margin-top:70px;
              margin-left:250px;
              margin-right:250px;
             }

.mikepen{width:350px;
         margin-left:105px;
        margin-top:30px;
        margin-bottom:5px;
        border-style:solid;
        border-color:lightgrey;
        border-width:4px;
        border-radius:1px;}

.portfolioimage{width:350px;
                margin-left:520px;
                margin-top:-338px;
                 border-style:solid;
                 border-width:4px;
                 border-radius:1px;
                 border-color:lightgrey;
                 height:254px;}

.photodesc1{font-family:palatino;
            color:grey;
            padding-left:207px;
            font-size:12px;}

.photodesc2{font-family:palatino;
            color:grey;
            padding-left:907px;
            font-size:12px;
            margin-top:-49px;
            }
             
.CONTACTME{color:#e5687e;
           text-align:center;
           margin-top:90px;}

#name{font-size:20px;
       margin-left:280px;
       margin-top:50px;
       font-family:georgian;
       padding-right:150px;}
#email{font-size:20px;
       margin-left:280px;
       margin-top:10px;
       font-family:georgian;
       padding-right:150px;}
#phone{font-size:20px;
       margin-left:280px;
       font-family:georgian;
       padding-right:150px;
       margin-top:10px;}
#message{font-size:20px;
       margin-left:280px;
       margin-top:10px;
       font-family:georgian;
       padding-right:150px;}

.getintouch{font-family:playfair+display;
            font-size:17px;
            color:grey;
            margin-left:750px;
            margin-right:250px;
            margin-top:-141px;}

.submit{margin-left:279px;
        margin-top:15px;
        background-color:pink;
        color:white;
        border-style:solid;
        border-width:0.5px;
        border-radius:80px;}

.bottombanner{background-color:#fff3f5;
             padding-top:40px;
             padding-bottom:40px;
             margin-top:40px;
             margin-right:-15px;
             margin-left:-15px;}
.aboutthispage{padding-left:450px;
               font-family:poppins;}

.madeby{margin-left:453px;}

.socialmedia{padding-left:950px;
               font-family:poppins;
                margin-top:-59.7px;}
.facebookicon{ margin-left:981px;
               border-style:solid;
               border-color:#3a5998;
               color:#3a5998;
               padding:3px;}
.instagramicon{margin-left:25px;
               border-style:solid;
               border-color:#b30000;
               padding:3px;
               color:#b30000;}
              
            
!

JS

              
                

// Select all links with hashes
$('a[href*="#"]')
  // Remove links that don't actually link to anything
  .not('[href="#"]')
  .not('[href="#0"]')
  .click(function(event) {
    // On-page links
    if (
      location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') 
      && 
      location.hostname == this.hostname
    ) {
      // Figure out element to scroll to
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
      // Does a scroll target exist?
      if (target.length) {
        // Only prevent default if animation is actually gonna happen
        event.preventDefault();
        $('html, body').animate({
          scrollTop: target.offset().top
        }, 1000, function() {
          // Callback after animation
          // Must change focus!
          var $target = $(target);
          $target.focus();
          if ($target.is(":focus")) { // Checking if the target was focused
            return false;
          } else {
            $target.attr('tabindex','-1'); // Adding tabindex for elements not focusable
            $target.focus(); // Set focus again
          };
        });
      }
    }
  });





              
            
!
999px

Console