This demo is for an application that requires Javascript to be enabled and provides no accessibility downgrade. It will fit entirely within the window, allowing no scrollbars on the window.
Some important points illustrated by this demo:
position:absolute
, the other page-structure elements have position:relative
. Embedding absolute elements within relative elements is a key concept. This allows the header and footer heights to be determined by their content.Many extra features can be easily added. This demo illustrates one: when the window is resized to the point that the main column width is less than or equal to the side column width, then the side column is hidden.
layout5 - Js layout with downgrade