Skip to content


height:100% != true..

In Css stylesheet you are never able to set height of table, div, or anything to 100%. Even if you set it, it will be never supposed to work. Though you can make height of div or table stretch to bottom of the screen.

There is expression() that you can use instead. Here’s an example:

style=”height:expression(parseInt(document.body.offsetHeight))”

The code above will do the trick. If you want to make html elements reach 50px off the bottom of the screen, the code will look like this:

style=”height:expression(parseInt(document.body.offsetHeight-50))”

Posted in Frontend Tech.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.