Answer the question
In order to leave comments, you need to log in
How to set an element to fill the entire free height?
Fellow web designers, there is an example solved using a table layout: http://jsfiddle.net/haGWe/
In it, the central cell occupies the entire free height in the table.
The problem is that it is not possible to overflow-y so that the center cell becomes smaller than the content it contains, creating a scrollbar.
Question: how to enable overflow-y, and if not, how to implement the same using block layout, but with the possibility of overflow?
UPD. Answers.
Block solution by avalak : http://jsfiddle.net/6Q7L7/1/
Table solution: http://jsfiddle.net/haGWe/6/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question