Currently, I can set the width attribute to auto to take the full width of the window, and it dynamically adjusts itself if the window size changes (for example, resizing browser windows or displaying them on a different screen size). Example: http://jsfiddle.net/NnsN2/
However, I cannot get height to work the same. This will always be the minimum height that will match the content, even if I tried to set it to auto .
The usual way to get the height of the window first ( $(window).height() ) and use it for height does not work here, because it will be static and will not dynamically adapt to window resizing.
How can I make the height always occupy the entire height of the window, and also be able to adapt to resizing the window?
source share