html{
    height:100%;
}

body{
    height:100%;
}

div#wrapper{
    height:100%;
    min-height: 100%;
}

body > #wrapper {
    height: auto;
}