CodePen

HTML

            
              <div class="wrap">
  <header>
    THIS IS MY HEADER
  </header>

  <div class="main">

    <p>    Thiis my content div</p>
    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>  
    
    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>  
  </div>

</div> <!-- end wrap div -->

<footer>

  THIS IS MY FOOTER


</footer>

            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              /* BOX MODEL FIX */

* {
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}

/* CLEARFIX */

.cf:before,
.cf:after {
  content: "";
  display: table;
} 
.cf:after {
  clear: both;
}
.cf {
  zoom: 1; /* For IE 6/7 (trigger hasLayout) */
}

/* OTHER LAYOUT - STICKY FOOTER*/

html, body, div.wrap { 
  height: 100%;
}

body > div.wrap {
  height: auto; 
  min-height: 100%;
  background:BlanchedAlmond ;
}

header {
  height:100px;
  background:DarkSeaGreen;
  text-align:center;
  line-height:100px;
}

.main {
  padding:10px;
  padding-bottom: 75px; /* must be same height as the footer */
}

.main p {
  padding-bottom:10px;
}  

footer { 
  position: relative;
  margin-top: -75px; /* negative value of footer height */
  height: 75px;
  background:IndianRed;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................