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 href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link href="https://fonts.googleapis.com/css?family=Pridi" rel="stylesheet">

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">

<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#top">Mitul</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="navbar-collapse">


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

    <!-- /.navbar-collapse -->
  </div>
  <!-- /.container-fluid -->
</nav>

<div class="main-body">
  <div class="container-fluid">
    <div class="row">
        <div class="top text-center" id="top">
          <h1>Hi</h1>
          <p>I am Mitul. A wannabe programmer. I like to code and make stuff.</p>
          <p>I also like to play old games, gossip with friends and surf internet.</p>
        </div>
        <div class="about text-center" id="about">
          <h1>About</h1>
          <p>Currently Working on front end development and javascript</p>
          <p>C# and .NET enthusiast</p>
          <p>Hobbiest Unity Game Programmer</p>
        </div>
        <div class="portfolio text-center" id="portfolio">
          <h1>Portfolio</h1>
          <p>I made this</p>
          <div class="img-responsive">
            <div class="img-container col-xs-4 col-md-4">
              <a href="https://codepen.io/mitul_islam/full/QEdVBj/"><img src="http://i58.photobucket.com/albums/g246/space_driver/portfolio_img_1_zpsk0lptxr6.png" alt="portfolio_img_1" target='_blank' class="img-responsive" /></a>
            </div>
            <div class="img-container  col-xs-4 col-md-4">
              <a href="https://codepen.io/mitul_islam/full/zBNXZN/"><img src="http://i58.photobucket.com/albums/g246/space_driver/portfolio_img_2_zpskxyfvdhl.png" alt="portfolio_img_2" class="img-responsive" target='_blank' /></a>
            </div>
            <div class="img-container  col-xs-4 col-md-4">
              <a href=""><img src="http://i58.photobucket.com/albums/g246/space_driver/default_zpsdinnyxwt.png" alt="portfolio_img_3" target='_blank' class="img-responsive" /></a>
            </div>
          </div>
        </div>
        <div class="contact text-center" id="contact">
          <h1>Contact</h1>
          <div class="contact-description">
            <p>Designed by <a href="https://github.com/MitulIslam">Mitul Islam</a></p>
          </div>
          <div class="contact-links">
            <button class="btn btn-default btn-lg"><a href="https://github.com/MitulIslam"><i class="fa fa-github" aria-hidden="true"></i>Github</a></button>
            <button class="btn btn-default btn-lg"><a href="https://www.facebook.com/bingo.mitul"><i class="fa fa-facebook" aria-hidden="true"></i>Facebook</a></button>
            <button class="btn btn-default btn-lg"><a href="https://www.freecodecamp.com/mitulislam"><i class="fa fa-fire" aria-hidden="true"></i>Free Code Camp</a></button>
          </div>
        </div>
    </div>
  </div>
</div>

<footer class="footer">
  <div class="container">
    <p class="text-muted text-right">&copy Mitul Islam</p>
  </div>
</footer>
              
            
!

CSS

              
                body {
  color: #FFFFFF;
}

.navbar {
  padding: 0px 15px;
}

h1 {
  font-family: 'Montserrat', sans-serif;
}

p {
  font-family: 'Pridi', serif;
  font-size: 150%;
}

.navbar {
  //background-color: #442B48;
  //color: white;
  font-family: 'Pridi', serif;
}

.main-body {
  margin: 51px 0px 0px 0px;
  width: auto;
}

.top {
  background-color: #90488A;
  padding: 10px 10px;
  height:100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about {
  background-color: #9A334F;
  padding: 10px 10px;
  height:100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portfolio {
  background-color: #85BB5E;
  padding: 10px 10px;
  height:100vh;
}

.img-container {
  //float:left;
}

.portfolio a img {
  //width: 250px;
  max-height: 450px;
  padding: 15px;
}
.contact {
  background-color: #05668D;
  padding: 10px 10px;
  height:100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-description p a {
  color : black;
  text-align: center;
  text-decoration: none;
}

.contact-links button {
  width : 300px;
}

.contact-links button a {
  text-decoration: none;
}

i {
  margin: 5px;
}
              
            
!

JS

              
                //smooth scroll script
$(function() {
  $('a[href*="#"]:not([href="#"])').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html, body').animate({
          scrollTop: target.offset().top - 50
        }, 1000);
        return false;
      }
    }
  });
});

              
            
!
999px

Console