    html, body {
      height:100%; margin:0;
    }
 
    html>body {
      min-height:100%;
      height:auto;
    }
 
    body {
      position:relative;
    }
 
    #footer {
      position:absolute;
      bottom:0; width:100%;
    }
 
    #main {
      padding-bottom:50px;
    }
 
    #header,
    #footer {

      height:50px;
    }
	
	