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.

            
              <!-- Navigation Bar -->
<!--FONT AWESOME -->
<script src="https://use.fontawesome.com/e6ad9537dd.js"></script>


<div id="header" class="container-fluid">
  
  <div class="logo">Ian Terry</div>
  <div id="list">
  <ul id="navbar-list" class="nav-full">
    <li><a class="about-class" href="#about"><i class="fa fa-info-circle"></i> About</a></li>
    <li><a class="blog-class" href="#blog"><i class="fa fa-newspaper-o"></i> Blog</a></li>
    <li><a class="portfolio-class" href="#portfolio"><i class="fa fa-folder-open-o"></i> Portfolio</a></li>
    <li><a class="contact-class" href="#contact"><i class="fa fa-envelope-open-o"></i> Contact</a></li>
  </ul>
    </div>
  </div>
  
</div>



<div id="content" class="container-fluid">
  <div id="about" class="star-banner"></div>
  
  <!--ABOUT SECTION-->
  <div class="row no-gutter">
    <div class="col-md-2"></div>
    <div class="col-md-8"> 
  <div class="section-frame white-background">
 
    <div class="row align-items-center">
      <div class="col-md-4 text-center">
    <img id="my-picture" class="img-responsive" src="https://i1.wp.com/belowparallelstudios.com/wp-content/uploads/2016/10/me01.png?resize=196%2C300" alt="picture of me">
      </div>
      <div class="col-md-8">
    <h4 id="about-p">Mechanical Engineer - Self taught software developer - Hobby game developer - Weight Lifter - Cyclist - Creator - Self-improver </h4>
      </div>
    </div>
  </div>
    </div>
    <div class="col-md-2"></div>
  </div>
  
  <div id="blog" class="row no-gutter">
    <div class="col-md-2"></div>
    <div class="col-md-8">
   <div class="star-banner short"></div>
    </div>
    <div class="col-md-2"></div>
  </div>
  
  <!--BLOG SECTION-->
  <div class="row no-gutter">
    <div class="col-md-2"></div>
    <div class="col-md-8"> 
  <div class="section-frame red-background">
 
    <div class="row align-items-center">
      <div class="col-md-2"></div>
      <div class="col-md-8">
        <h4 id="about-p">Visit my personal blog <a href="http://belowparallelstudios.com/"> HERE!</a></h4>
      </div>
      <div class="col-md-2"></div>
    </div>
  </div>
    </div>
    <div class="col-md-2"></div>
  </div>
  
  <div id="portfolio" class="row no-gutter">
    <div class="col-md-2"></div>
    <div class="col-md-8">
   <div class="star-banner short"></div>
    </div>
    <div class="col-md-2"></div>
  </div>
  
  <!--PORTFOLIO SECTION-->
   <div class="row no-gutter">
    <div class="col-md-2"></div>
    <div class="col-md-8"> 
  <div class="section-frame white-background">
 
    <div class="row">
      <div class="col"></div>
      <div class="col">
      <h2 class="text-center">Portfolio</h2>
      </div>
      <div class="col"></div>
    </div>
      
      <div class="row">
        <div class="col-md-4">
          <img class="img-responsive portfolio-img" src="https://i2.wp.com/belowparallelstudios.com/wp-content/uploads/2016/11/MapGeneratorBanner.png?w=731" alt="Map Generator">
        </div>
        <div class="col-md-4">
          <img class="img-responsive portfolio-img" src="https://i2.wp.com/belowparallelstudios.com/wp-content/uploads/2016/11/WOSBanner.png?w=731" alt="World Under Siege">
        </div>
        <div class="col-md-4">
          <img class="img-responsive portfolio-img" src="https://i2.wp.com/belowparallelstudios.com/wp-content/uploads/2016/11/WOSBanner.png?w=731" alt="World Under Siege">
        </div>
        <div class="col-md-4">
          <img class="img-responsive portfolio-img" src="https://i2.wp.com/belowparallelstudios.com/wp-content/uploads/2016/11/MapGeneratorBanner.png?w=731" alt="Map Generator">
        </div>
      </div>
      
    </div>
  </div>
    </div>
    <div class="col-md-2"></div>
  
  <div id="contact" class="row no-gutter">
    <div class="col-md-2"></div>
    <div class="col-md-8">
   <div class="star-banner short"></div>
    </div>
    <div class="col-md-2"></div>
  </div>
  
  <!--CONTACT SECTION-->
  <div class="row no-gutter">
    
    <div class="col-md-2"></div>
    
    <div class="col-md-8"> 
  <div class="section-frame red-background">
    
    <div class="row">
      <div class="col"></div>
      <div class="col border-custom">
      <h2 class="text-center">Contact Me</h2>
      </div>
      <div class="col"></div>
    </div>
 
    <div class="row justify-content-center">
      <div class="col-md-6 text-center border-custom">
        <form>
          <input type="text" placeholder="Name"></input>
        </form>
      </div>
      <div class="col-md-6 text-center border-custom">
        <form>
          <input type="text" placeholder="Email"></input>
        </form>
      </div>
    </div>
    
    <div class="row">
      <div class="col border-custom">
      <form>
        <textarea placeholder="Message"></textarea>
        </form>
    </div>
    </div>
    
    <div class="row">
      <div class="col text-center border-custom">
      <form>
        <button type="submit" class="btn btn-default btn-block"><i class="fa fa-paper-plane-o"></i> Send Message</input>
        </form>
    </div>
    </div>
      
  </div>
    </div>
    <div class="col-md-2"></div>
  </div>

<div class="star-banner"></div>
<div class="row align-items-center no-gutters">
  
  <div class="col border-custom">
<div class="footer">
  <a href="https://twitter.com/BelowParallel_"><i class="fa fa-twitter social"></i></a>
  <a href="https://www.linkedin.com/in/ian-terry-606737a5/"><i class="fa fa-linkedin social"></i></a>
  <a href="https://github.com/BelowParallelStudios"><i class="fa fa-github social"></i></a>
</div>
  </div>
 
</div>

</div>
  
 



<!--
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
<p>asfasfsa</p>
-->


            
          
!
            
              body {
  background-color: rgb(220,220,225);
}

.white-background {
  background-color: white;
}

.red-background {
  background-color: rgb(220,80,80);
  color: white;
}

#header {
  position: fixed;
  z-index: 1;
  width: 100%;
  height: 80px;
  //padding-top: 20px;
  //padding-bottom: 20px;
  background-color: rgb(220,80,80);
}

.logo {
  position: absolute;
  top: 15%;
  left: 10%;
  color: rgb(235,235,235);
  font-family: fantasy;
  font-size: 35px;
  letter-spacing: 7px;
}

.nav-full {
  list-style-type: none;
  float: right;
  margin: 15px;
  padding: 0px;
  //overflow: hidden;
  //background-color: rgb(220,80,80);
  //border: 2px solid rgb(220, 80, 80);
}

.nav-compact {
  list-style-type: none;
  float: right;
  margin: 0;
  margin-top: 60px;
  padding: 0;
  width: 180px;
  background-color: rgb(220,80,80);
}

/* Dropdown Button */
.dropbtn {
  background-color: rgb(220,80,80);
  
  color: white;
  padding: 16px;
  font-size: 24px;
  border: none;
  //box-shadow: 1px 1px 1px black;
  cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
  top: 60px;
  right: -50px;
    background-color: #rgb(220,80,80);
    //min-width: 160px;
    //box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    list-style-type: none;
  float: right;
  margin: 0;
  //margin-top: 60px;
  //padding: 0;
  padding: 12px 24px;
  width: 180px;
  background-color: rgb(220,80,80);
}

.dropdown {
    position: relative;
  left: 80%;
    display: inline-block;
}

.show {
  display:block;
}
/* Dropdown Button END*/

li {
  float: left;
  //border-bottom: 2px solid rgb(220, 80, 80);
}

 li a {
   display: block;
   padding: 12px 24px;
   font-family: "Lucida Console", Monaco, monospace;
   color: rgb(255,255,255);
   //width: 80px;
   //border: 1px solid rgb(220,80,80);
   text-align: center; 
}

li a:hover {
  background-color: rgb(200, 80, 80);
}

/*
.nav-custom {
   width: 100%;
   padding: 12px 24px;
   font-family: "Lucida Console", Monaco, monospace;
   color: rgb(255,255,255);
   //width: 80px;
   //border: 1px solid rgb(220,80,80);
   text-align: center; 
}
*/

.row {
  padding: 0;
  margin: 0;
}

//content starts here
#content {
  top: 80px;
  padding: 0;
  margin: 0;
}

#about {
  //position: relative;
  //top: 0px;
}

.star-banner {
  //position: relative;
  //width: 100%;
  height: 40px;
  color: white;
  background-color: rgb(80,80,220);
  font-size: 24px;;
  font-family: FontAwesome;
  text-align: center;
}

.section-frame {
  padding-top: 25px;
  padding-bottom: 25px;
  //background-color: white;
  border: 1px groove rgb(210,210,255);
}

#my-picture {
  border-radius: 100px;
}

#about-p {
  text-align: center;
  padding-left: 25px;
}

.portfolio-img {
  //border-radius: 4px;
  padding: 5px;
  width: 100%;
    
}

//INPUTS STYLES
input[type=text]:focus {
    border: 3px solid rgb(80,80,255);
}

textarea:focus {
    border: 3px solid rgb(80,80,255);
}

input[type=text] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 3px solid #ccc;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 3px solid #ccc;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    resize: none;
    outline: none;
  text-align: top;
}

//input styles /end

.footer {
  height: 40px;
  color: white;
  background-color: rgb(80,80,220);
  font-size: 24px;;
  font-family: FontAwesome;
  text-align: center;
}

.footer a {
  color: white;
}

.social {
  padding-left: 10px;
  padding-right: 10px;
}

.short {
  overflow: hidden;
}







            
          
!
            
              
//creates star-banner
var $char = $('<span>').css({ padding: 0, margin: 0 }).text('w|').appendTo('.star-banner'),
    charWidth = $char.width(),
    numberOfChars = parseInt( ( $('.star-banner').width() / charWidth ).toFixed(), 10 );

$char.remove();

$('.star-banner').append( Array(numberOfChars).join('\uf006'));

//update banner on resize
$(window).resize(function(){
  
  //clear out old stars before creating new
  $('.star-banner').html("");
  
var $char = $('<span>').css({ padding: 0, margin: 0 }).text('w|').appendTo('.star-banner'),
    charWidth = $char.width(),
    numberOfChars = parseInt( ( $('.star-banner').width() / charWidth ).toFixed(), 10 );

$char.remove();

$('.star-banner').append( Array(numberOfChars).join('\uf006'));
  });

//dropdown function
function dropdownFunction() {
    document.getElementById("myDropdown").classList.toggle("show");
}

//change nav-bar based on screen size
$(window).resize(function() {
  if ($(window).width() < 960) {
    $("#navbar-list").removeClass("nav-full");
    $("#navbar-list").addClass("nav-compact");
    
      $("#list").html('\
<div class="dropdown">\
  <button onclick="dropdownFunction()" class="dropbtn"><i class="fa fa-bars"></i></button>\
  <div id="myDropdown" class="dropdown-content">\
    <ul id="navbar-list" class="nav-full">\
    <li><a class="about-class" href="#about"><i class="fa fa-info-circle"></i> About</a></li>\
    <li><a class="blog-class" href="#blog"><i class="fa fa-newspaper-o"></i> Blog</a></li>\
    <li><a class="portfolio-class" href="#portfolio"><i class="fa fa-folder-open-o"></i> Portfolio</a></li>\
    <li><a class="contact-class" href="#contact"><i class="fa fa-envelope-open-o"></i> Contact</a></li>\
  </ul>\
  </div>\
</div>');
    
  NavFunction();
}
else {
  $("#navbar-list").removeClass("nav-compact");
   $("#navbar-list").addClass("nav-full");
  
  $("#list").html('\
<ul id="navbar-list" class="nav-full">\
    <li><a class="about-class" href="#about"><i class="fa fa-info-circle"></i> About</a></li>\
    <li><a class="blog-class" href="#blog"><i class="fa fa-newspaper-o"></i> Blog</a></li>\
    <li><a class="portfolio-class" href="#portfolio"><i class="fa fa-folder-open-o"></i> Portfolio</a></li>\
    <li><a class="contact-class" href="#contact"><i class="fa fa-envelope-open-o"></i> Contact</a></li>\
  </ul>\
    </div>\
</div>');
  
  NavFunction();
}
 
});

//navigation links/scrolls

function NavFunction(){
var about = $("#about").position();
//var blog = $("#blog").position();
var portfolio = $("#portfolio").position();
var contact = $("#contact").position();

  $('.about-class').click(function() {
    $('html, body').animate({
      scrollTop: about.top
    }, 500);
    //return false;

  }); 

$('.blog-class').click(function() {
    $('html, body').animate({
      scrollTop: $("#blog").position().top 
    }, 500);
    //return false;

  }); 

$('.portfolio-class').click(function() {
    $('html, body').animate({
      scrollTop: portfolio.top
    }, 500);
    //return false;

  }); 

$('.contact-class').click(function() {
    $('html, body').animate({
      scrollTop: contact.top
    }, 500);
    //return false;

  }); 
}

NavFunction();

 /*$(".jumper").on("click", function( e ) {

    e.preventDefault();
    var scrollToPosition = $(target).offset().top - 80px;
   
    $("body, html").animate({ 
      scrollTop: $( $(this).attr('href') ).offset().top - 80
    }, 600);

  });*/

//$("html, body").scrollTop($(element).offset().top);

 


            
          
!
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