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 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

              
                <html lang="en">
<head>
  <title>Bootstrap Case</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <link 
  href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css" 
  rel="stylesheet"  type='text/css'>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  

  
  
<body id="top">
<header class="navbar navbar-default navbar-fixed-top" id="bannertop">
  <div class="container" id="topmost"><a class="scrollable" href="#" id="webpagename">Henzen's Portfolio</a>
  <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
    <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
   </button>
    <nav class="collapse navbar-collapse navbar-right" id="navbar" role="navigation">
    <ul class="nav navbar-collapse" role="navigation" id="topmenu">
      <li><a class="active" href="#top">Home</a></li>
      <li><a href="#portfolio">Works</a></li>
      <li><a href="#contact">Contact</a></li>
    </ul>
    </nav
  </div>
</header>
    
    <div class="container" id="topheader" style="height:632px">
  <h id="slidertext"> My name is Henzen and<br/>I design beautiful websites. </h>
  <button class="button button1" id="viewmywork">View My Works</button>
</div>
</header>
  
<!--Portfolio section -->
<section id="portfolio">
  <h2> My Works </h2>
  <div>
  <ul class="grid">
    <li><img src="http://henzenrevilla.com/wp-content/uploads/2016/12/ccc.jpg" alt=""></img><p>One</p></li>
    <li><img src="http://henzenrevilla.com/wp-content/uploads/2016/12/bbb.jpg" alt=""></img><p>Two</p></li>
    <li><img src="http://henzenrevilla.com/wp-content/uploads/2016/12/aaa.jpg" alt=""></img><p>Three</p></li>
    <li><img src="http://henzenrevilla.com/wp-content/uploads/2016/12/ss3.jpg" alt=""></img><p>Four</p></li>
    <li><img src="http://henzenrevilla.com/wp-content/uploads/2016/12/ss2.jpg" alt=""></img><p>Five</p></li>
    <li><img src="http://henzenrevilla.com/wp-content/uploads/2016/12/ss1b.jpg" alt=""></img><p>Six</p></li>
    
  </ul>
</div>

 </section>
<!-- Contact Section -->
<section id="contact">
  <div class="container" id="contactwideimage" style="height:402px">
    <div class="box" id="transparentoverlay" style="height:402px">
      <h3> Contact </h3>
    <div class="container">
      <div class="container-fluid" id="formandtext">
<div class="row">
  <div class="col-md-2"> </div>
  <div class="col-md-5"> <p id="quotecontact" align="center"> If you need a website for your business, don't hesitate to contact me. Just provide the necessary information on the right and I will be in touch as soon as possible. </p> </div>
  
  <div class="col-md-3">
    <form>
      <div class="form-group" id="whiteforms"> 
        <label for="name">Full Name:</label> <input type="text" class="form-control" id="name" placeholder="Name" required=""> </div>
      <div class="form-group">
        <label for="email">Email Address:</label> <input type="email" class="form-control" id="email" placeholder="Email" required=""> </div>
      <div class="form-group">
        <label for="phonenumber">Phone Number:</label> <input type="phone" class="form-control" id="phonenumber" placeholder="Phone" required=""> </div>
      <div class="form-group">
        <label for="message">Message:</label> <textarea class="form-control" rows="3" id="message" placeholder="Message" required=""> </textarea> </div>
       <button type="submit" class="btn btn-primary" id="buttonsubmitform" style="width:250px">Submit</button>
    </form>
</div>
  <div class="col-md-2"> </div>
      
    </div>
  </div>
  </section>
      
<!--Footer -->
<div class="container" id="sosyal" style="height:200px">
  <h4>Follow Me</h4>
    <ul id="ftl">
    <li><a class="button social media" href=""><i class="fa fa-fw fa-facebook"></i></a></li>
    <li><a class="button social media" href=""><i class="fa fa-fw fa-twitter"></i></a></li>
    <li><a class="button social media" href=""><i class="fa fa-fw fa-linkedin"></i></a></li>
  </ul>
        </div>
      <div id="footer">Henzen © 
        <script>document.write(new Date().getFullYear())</script>. All Rights Reversed </div>
        
      
 

   </body>
  </html>
              
            
!

CSS

              
                #bannertop {
  height: 80px;
  border-radius: 0;
  background-color: #e3e3e8;
  height: 70px;
  box-shadow: 0px 1px 10px rgba(0,0,0,0.3);
  border-bottom: 1px solid white;
  
}

#webpagename {
  font-size: calc(12px + 1vw);
  font-weight: bold;
  color: #67677e !important;
  vertical-align: middle;
  line-height: 70px;
  
}
#webpagename:hover {
  text-decoration: none;
}

#navbar li {
  font-weight: bold;
  display: inline-flex;
      
}
#navbar li a {
  vertical-align: middle;
  line-height: 50px;
  color: #67677e;
}
#navbar li a:hover {
  background-color: #5c5c70 !important;
  color: white !important;
  transition-duration: 0.3s;
}

button.navbar-toggle {
  vertical-align: middle;
  margin-top: 18px;
  border: 1px solid rgba(103,103,126,1) !important;
}
#topheader {
  background: url(http://henzenrevilla.com/wp-content/uploads/2016/12/editedimag.jpg) no-repeat center top;
  background-size: cover;
  width: 100%;
}
#slidertext {
  position: absolute;
  text-align: center; 
  top: 200px; 
  left: 0; 
  width: 100%; 
  font-size: 3.5vw;
  color: white;
  line-height: 130% !important;
  white-space: nowrap;
  
}
#portfolio {
  margin-top: 50px;
}
#viewmywork {
  position: absolute;
  text-align: center; 
  top: 450px; 
  left: 50%; 
  -webkit-transform: translate(-50%, 0); 
  background-color: transparent;
  font-size: 20px;
  padding: 20px 30px;
  border-radius: 7px;
  border-style: solid;
  border-color: yellow;
  color: white;
  transition-duration: 0.4s;
  
}
#viewmywork:hover {
  background-color: yellow;
  color: black;
}

h2 {
  font-size: 40px;
  text-align: center;
  line-height: 300%;
}
#portfolio .grid {
  display: flex;
  width: 60%;
  background-color: transparent;
  position: relative;
  left: 50%;
  -webkit-transform: translate(-52%, 0); 
  text-align: center;
  list-style: none;
  flex-flow: row wrap;
  
}
#portfolio .grid li {
  margin: auto;
  margin-top: 25px;
  border-width: 0 ;
    
}
#portfolio img {
  border: 1px solid white;
  border-radius: 3px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  
}
#portfolio p {
  font-size: 15px;
  margin-top: 20px;
  
  
}
#contactwideimage {
  background: url(http://henzenrevilla.com/wp-content/uploads/2016/12/hands.jpg) no-repeat center top;
  background-size: cover;
  width: 100%;
  margin-top: 30px;
}
#transparentoverlay {
  background: rgba(38,50,69,0.9);
  width: 100% !important;
  margin: 0 auto;
  position: absolute;
  left: 0;
}
h3 {
  position: relative;
  text-align: center; 
  top: 10px; 
  left: 0; 
  width: 100%; 
  font-size: 40px;
  color: white !important;
  white-space: nowrap;
  margin-bottom: 30px;
}
#contact label {
  display: none;
  
}

#quotecontact {
  font-size: calc(12px + 0.5vw);
  color: white;
  line-height: 200%;
  vertical-align: middle;
  text-align: center;
  font-style: italic;
  padding-top: 30px;    
  
}

#formandtext {
  margin-top: 25px;
}

#whiteforms {
  
}


#buttonsubmitform {
  border: 1px solid yellow;
  font-size: 15px;
  background: transparent;
  padding: 10px 20px;
  align: right;
  width: 100% !important;

}
#buttonsubmitform:hover {
  background: yellow;
  color: black;
  font-weight: bold;
  transition-duration: 0.4s;
}
h4 {
  font-size: 30px !important;
  text-align: center;
  line-height: 300%;
  padding-top: 30px;
  
}

#ftl {
  align-text: center;
  display: table;
  margin: auto;
  padding: 0;
  margin-top: 20px;
   
}

#sosyal ul li {
  display: inline-block;
  font-size: 30px;
  border-radius: 60%;
  border: 1px solid #67677e;
  padding: 10px 10px;
  margin: auto 10px;
  
}
#sosyal ul li a {
  color: #67677e;
}
#sosyal ul li a:hover {
  color: white;
}
#sosyal ul li:hover {
  border: 1px solid #67677e;
  background: #67677e;
  transition-duration: 0.4s;
}
#footer {
  text-align: center;
  background: #67677e;
  color: white;
  padding: 10px;
}
              
            
!

JS

              
                // Cache selectors
var lastId,
 topMenu = $("#topmenu"),
 topMenuHeight = topMenu.outerHeight()+1,
 // All list items
 menuItems = topMenu.find("a"),
 // Anchors corresponding to menu items
 scrollItems = menuItems.map(function(){
   var item = $($(this).attr("href"));
    if (item.length) { return item; }
 });

// Bind click handler to menu items
// so we can get a fancy scroll animation
menuItems.click(function(e){
  var href = $(this).attr("href"),
      offsetTop = href === "#" ? 0 : $(href).offset().top-topMenuHeight+1;
  $('html, body').stop().animate({ 
      scrollTop: offsetTop
  }, 850);
  e.preventDefault();
});

// Bind to scroll
$(window).scroll(function(){
   // Get container scroll position
   var fromTop = $(this).scrollTop()+topMenuHeight;
   
   // Get id of current scroll item
   var cur = scrollItems.map(function(){
     if ($(this).offset().top < fromTop)
       return this;
   });
   // Get the id of the current element
   cur = cur[cur.length-1];
   var id = cur && cur.length ? cur[0].id : "";
   
   if (lastId !== id) {
       lastId = id;
       // Set/remove active class
       menuItems
         .parent().removeClass("active")
         .end().filter("[href=#"+id+"]").parent().addClass("active");
   }                   
});

              
            
!
999px

Console