html {  
    height: 100%;  
}  
body {  
    height: 100%;  
}  
#container {  
    position: relative;  
    min-height: 100%;  
}  
#contents {  
    height:auto;  
}  
#footer {  
    position: absolute;  
    bottom: 5%;  
    width: 100%;  
}  