May 29, 2008

Firefox div height relative to viewport works!

If you were trying to set the height of a div or any other object for that matter relative to the height if the viewport, This might be a solution. [ Blogspot eats up html.. even in compose box.]

I was actually facing the same problem.. few google searches, jumping between a few IRC channels later, I was about to give up. Then just out of thin air .. I tried the above .. And it worked.

If this solution existed somewhere else, please let me know.. so that next time I can use better search params.

No comments: