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.

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

              
                <!-- Navbar code starts here.. -->
	<nav class="navbar navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
			
        <a href="#" class="navbar-brand">Balazs Gal</a>
			</div><!-- End of navbar header -->
      <div id="navbar" class="collapse navbar-collapse">
        <ul class="nav navbar-nav navbar-right">
          <li><a href="#about">About</a>
          <li><a href="#portfolio">Portfolio</a>
            <li><a href="#contact">Contact</a>
          
        </ul>
        
      </div><!-- End of navbar collapse -->
      
		</div><!-- End of Container -->
	</nav><!-- End of Navbar -->
<div class="container-fluid"> <!-- Start of container -->
  <div class="row" id="header"> <!-- header -->
    <div class="col-xs-8 col-sm-8 col-md-8" id="about">
      <h3 class="text-center header-text">Front-End Developer and Computer Science student, with practical experience in project management, journalism, photography and creative direction. Devoted to functional programming and information achitecture.</h3>
      <hr class="header-line">
      <h2 class="text-center">Web Developer - Computer Science Student - Photographer</h2>
    </div>
            <div class="col-xs-4 col-sm-4 col-md-4">
      
      <img class="img-circle img-responsive" src="https://i.imgur.com/cKX63tU.jpg" />
    </div>
      
    </div>
  </div> <!-- End of header -->
<div class="container" id="portfolio">
  <div class="row">
    <h2 class="text-center text-primary text-uppercase">My portfolio</h2>
    <hr class="portfolio-line">
    <div class="col-xs-6 col-sm-6 col-md-6">
      <h3 class="text-center text-primary">Stephen King Tribute Page</h3>
      <a href="https://codepen.io/galbalazs87/pen/JRzaWz" target="_blank"><img class="img-responsive img-rounded portfolio-pic" src="https://i.imgur.com/M92zfrn.jpg" width="300" /></a>
        </div>
    <div class="col-xs6 col-sm-6 col-md-6">
      <h3 class="text-center text-primary">BK Photo Page</h3>
      <a href="http://www.galbalazs.co.hu" target="_blank"><img class="img-responsive img-rounded portfolio-pic" src="https://i.imgur.com/cYe47YV.jpg" width="300"/></a>
    </div>
  </div> <!-- End of SK and BK row -->
  <div class="row">
    <div class="col-xs-6 col-sm-6 col-md-6">
      <h3 class="text-center text-primary">My First Video Edit</h3>
      <iframe width="570" height="315" src="https://www.youtube.com/embed/osLrayTksM8" frameborder="0" allowfullscreen></iframe>    
    </div>
    <div class="col-xs-6 col-sm-6 col-md-6">
      <h3 class="text-center text-primary">My Second Video Edit</h3>
      <iframe width="570" height="315" src="https://www.youtube.com/embed/12F1FEehsdA" frameborder="0" allowfullscreen></iframe>
    
    </div>
    
  </div><!-- End of videos row -->
  <div class="row"><!--Coming soon row-->
    <div class="col-xs-6 col-sm-6 col-md-6">
    <h3 class="text-center text-primary">Coming Soon!</h3>
    <img class="img-responsive img-rounded portfolio-pic" src="https://i.imgur.com/5BMtzBD.jpg" width="300" />
    </div>
    <div class="col-xs-6 col-sm-6 col-md-6">
    <h3 class="text-center text-primary">Coming Soon!</h3>
    <img class="img-responsive img-rounded portfolio-pic" src="https://i.imgur.com/5BMtzBD.jpg" width="300" />
    </div>    
  </div><!--End of Coming Soon row--> 
  
</div><!--End of Portfolio-->
<div class="container" id="contact">
  <h2 class="text-center text-uppercase">Contact Me</h2>
    <hr class="portfolio-line">
  <div class="col-xs-4 col-sm-4 col-md-4" id="contact-form"><!--Contact form div-->
    <div class="form-area">
      <form role="form">
        <br style="clear:both">
        <h3 style="text-primary" id="contacth3">Contact me!</h3>
        <div class="form-group">
          <div class="input-group">
          <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
        <input type="text" class="form-control" id="name" name="name" placeholder="Name" required>
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
        <input type="text" class="form-control" id="email" name="email" placeholder="Email" required>
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <span class="input-group-addon"><i class="glyphicon glyphicon-home"></i></span>
        <input type="text" class="form-control" id="address" name="address" placeholder="Address" required> 
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <span class="input-group-addon"><i class="glyphicon glyphicon-star"></i></span>
        <input type="text" class="form-control" id="subject" name="subject" placeholder="Subject" required>  
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <span class="input-group-addon"><i class="glyphicon glyphicon-pencil"></i></span>
        <textarea class="form-control" type="textarea" id="message" placeholder="Message" maxlength="400" rows="7" required></textarea> 
          </div>
        </div>
        <button type="button" id="submit" name="submit" class="btn btn-primary pull-right">Submit <span class="glyphicon glyphicon-send"></span></button>    
      </form>
    </div><!--End of form area-->
  </div><!--End of contact form div-->
  <div class="col-xs-8 col-sm-8 col-md-8" id="contact-right">
  <img class="img-responsive contact-right-img" src="https://i.imgur.com/RTBp8oJ.png" />
  
  
  
  
</div><!--End of contact-right-->
  </div>

</div><!--End of contact-->
<div class="row" id="about_this"><!--Begin of about this-->
  <div class="col-xs-6 col-sm-6 col-md-6">
    <h2 class="text-center">ABOUT THIS PAGE</h2>
    <h3 class="text-center">Made with lots of <span><i class="fa fa-coffee"></i></span> and <span><i class="fa fa-headphones"></i></span><br /> by <a href="https://www.freecodecamp.com/galbalazs87">Balazs Gal.</a></h3>    
  </div>
  <div class="col-xs-6 col-sm-6 col-md-6">
    <h2 class="text-center">AROUND THE WEB</h2>
    <p class="text-center">
    <span><a href="https://www.facebook.com/galbalazs87"><i class="fa fa-facebook-official fa-3x"></i></a></span>
      <span><a href="https://www.instagram.com/galbalazs87/"><i class="fa fa-instagram fa-3x"></i></a></span>
      <span><a href="https://vk.com/galbalazs87"><i class="fa fa-vk fa-3x"></i></a></span>
      <span><a href="https://twitter.com/galbalazs87"><i class="fa fa-twitter fa-3x"></i></a></span>
    <span><a href="https://www.freecodecamp.com/galbalazs87"><i class="fa fa-free-code-camp fa-3x"></i></a></span>
      <span><a href="https://github.com/galbalazs87"><i class="fa fa-github fa-3x"></i></a></span>
    </p>  
  </div>
</div><!--End of about this-->
<div class="row" id="footer">
  <h4 class="text-center">Balazs Gal &copy; 2016. All Rights Reserved</h4>
  
</div><!--End of footer-->
</div> <!-- End of fluid container -->

              
            
!

CSS

              
                body {
  font-family: 'Viga', sans-serif;
  background-color:#888888;
  padding-top: 50px;
  color: white;
}


.navbar {
  background: transparent;
} 

.navbar-inverse {
  background: transparent;
}

.navbar-fixed-top {
  background: transparent;
}

#header {
  background-color:#AAAAAA;
  width:1200px;
  margin-left:auto;
  margin-right:auto;
  padding:45px;
  
}

.img-circle {
  width:300px;
  height:300px;
  border-radius:50%;  
  }

.header-line {
  width:450px; 
}

.header-text {
  padding:15px;
}

#portfolio {
  width:1200px;
  background-color:#EEEEEE;
  padding-bottom:20px;
}

.portfolio-pic {
  padding:auto;
  margin:auto;
}

.portfolio-line {
  width:600px;   
  border-color: #AAAAAA;
}

#contact {
  width:1200px;
  background-color:#4b76bc;
}

#contacth3 {
  text-align: center;
}

#contact-form {
  padding-bottom:20px;
}

.contact-right-img {
  padding: auto;
  margin: auto;
}

#about_this {
  background-color:#AAAAAA;
  padding:30px;
}

#footer {
  background-color:#222222;
  padding:20px;
}




              
            
!

JS

              
                $('a[href^="#portfolio"]').on('click', function(event) {
    var target = $(this.getAttribute('href'));
    if( target.length ) {
        event.preventDefault();
        $('html, body').stop().animate({
            scrollTop: target.offset().top
        }, 1000);
    }
});
$('a[href^="#about"]').on('click', function(event) {
    var target = $(this.getAttribute('href'));
    if( target.length ) {
        event.preventDefault();
        $('html, body').stop().animate({
            scrollTop: target.offset().top
        }, 1000);
    }
});
$('a[href^="#contact"]').on('click', function(event) {
    var target = $(this.getAttribute('href'));
    if( target.length ) {
        event.preventDefault();
        $('html, body').stop().animate({
            scrollTop: target.offset().top
        }, 1000);
    }
});
              
            
!
999px

Console