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

              
                <body  data-spy="scroll" data-target=".navbar" data-offset="50">
    <!-- /navigation bar-->   
 <ul class="w3-navbar w3-large w3-black w3-left-align">
  <li class="w3-hide-medium w3-hide-large w3-black w3-opennav w3-right">
    <a href="javascript:void(0);" onclick="myFunction()">☰</a>
  </li>
  <li><a href="#"></a></li>
  <li class="w3-hide-small"><a href="#page1">About </a></li>
  <li class="w3-hide-small"><a href="#page2">Portfolio</a></li>
  <li class="w3-hide-small"><a href="#page3">Contact</a></li>
</ul>

<div id="demo" class="w3-hide w3-hide-large w3-hide-medium">
  <ul class="w3-navbar w3-left-align w3-large w3-black">
    <li><a href="#page1">About</a></li>
    <li><a href="#page2">Portfolio</a></li>
    <li><a href="#page3">Contact</a></li>
  </ul>
</div>
   
    
    
    
    
    <!-- end--> 
     
    
    
    <div class="container">

<div  class="row" class="container-fluid section-about" id="page1" >
  <div class="col-lg-9 col-xs-12">  
<p > <h1 >Hasan Mohd Khan</h1>
    <br><h2>Material Web Design</h2>
    <br> Cool Dude
</p>    
    </div> 
<div class="col-lg-3 col-xs-12">
   
    <img id="shadow" src="https://s-media-cache-ak0.pinimg.com/originals/7a/65/01/7a6501eb0d3f2e49ad92a5a91612c463.jpg" style="width:300px; height:300px; margin-right:50px;" class="center-block" alt="profilePic">
        
        </div>  </div>  
 <div class="row" class="container-fluid section-portofolio" id="page2"  >
    <h1> Portfolio </h1>
<div class="row ">
<div class="col-sm-6 col-xs-12 w3-card w3-hover-shadow " id="mcolor">
<h2>Tribute page  </h2>  
<br>
<h3> Tribute Page : Alan Turing</h3>    
    <img src="https://s-media-cache-ak0.pinimg.com/564x/ac/47/fd/ac47fde121d8f891d745275aee6b13d7.jpg" style="width:240px; height:240px; " class="center-block w3-hover-shadow" alt="profilePic">
    <br> 
    </div>
<div class="col-sm-6 col-xs-12 w3-blue w3-hover-shadow ">
    <h2> Second project </h2>
    <br>
    <h3> Coming Soon</h3>
    <img src="http://placehold.it/240x240" style="width:240px; height:240px; ;" class="center-block  w3-hover-shadow" alt="profilePic">
 <br>
    
  </div>
    
    
    
    </div>
<!-- CONTACT SECTION -->

     
     </div>
 <div class="row" class="container-fluid section-portfolio" id="page3">   
    
<div class="row w3-card "> 
    <h1> Contact</h1>
   <p>
  <div class="w3-btn-group">
      <button class="w3-btn w3-hover-blue w3-ripple w3-xlarge" style="width:33.3%">
          <a href="https://www.facebook.com/hasanziann" target="_blank">Facebook </a><i class="w3-margin-left fa fa-facebook"></i> </button> 
      <button class="w3-btn w3-hover-purple w3-ripple w3-xlarge" style="width:33.3%"> <a href="https://twitter.com/hasanzian" target="_blank">Twitter </a><i class="w3-margin-left fa fa-twitter"></i> </button>
<button class="w3-btn w3-hover-yellow  w3-ripple w3-xlarge" style="width:33.3%">
    <a href="https://github.com/hasanmohdkhan" target="_blank">
        Github</a><i class="w3-margin-left fa fa-github"></i> </button>

</div>  
  

  
    
    </p>
     
     
     </div>
     </div>     
    
    
    </div>    

</body>

              
            
!

CSS

              
                body {margin:25px;}
  #page1 {padding-top : px;height:300px;color: #fff; background-color: #1E88E5;
          box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
      margin-bottom: 50px;
      margin-top: 100px;
}
  #page2 {
      margin-top: 100px;
      padding-top:50px;
      height:auto;
      width:500px 
      color: #fff; 
      background-color: none;}



#page3 {
    }




/********  card code *************/
div.polaroid {
  width:100%
  height:500px;      
  background-color:#1E8;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin-bottom: 25px;
}

div.container {
  text-align: center;
  padding: 10px 20px;
}
/*  card code  */

/***** Shadow ****/
#shadow{
    height: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
/* **************/
.navbar-brand > img {
  padding: 15px;
  height: 100%;
  filter: invert(100%);
}


#mcolor{
background-color: #1E8}

#contact{
 margin-top:100px ;    
 background-color:#f50057;   
    
}
              
            
!

JS

              
                function myFunction() {
    var x = document.getElementById("demo");
    if (x.className.indexOf("w3-show") == -1) {
        x.className += " w3-show";
    } else { 
        x.className = x.className.replace(" w3-show", "");
    }
}
              
            
!
999px

Console