CSS 100% height with absolute positioning top 0 bottom 0

I am now using this as well, and was
wondering if there is any reason not
to?

This technique works fantastically in modern browsers – there is no reason not to use it.

(unless you care about some really old browsers (IE5/6?), which don’t support setting top and bottom or left and right on the same element)

Here’s an answer I wrote earlier today which uses a similar technique.

Leave a Comment