just add the following to your css:
html, body{
height: 100%;
}
Like all of the above, it tabledoes not have height-attriute, but in most browsers intrepet is anyway. you can see the result in jsfiddle .
The reason you need to do this is because the parent of everything that needs to have a height in% must also have a height (as the Shadow Wizard said: “30% of what exactly?” - the parent must have a height )
source
share