I am seeking guidance on how to align and resize the following divs based on my specific requirements outlined below.
Area A Area A should remain at the top with a set height that will not change.
Area B The height of Area B should vary between 0 and a minimum height. When the height of B is 0, Area C should expand to fill the space originally occupied by B.
The height of Area B can also increase from the minimum height to a value greater than the minimum height (X (X > min-height)
). In this scenario, Area C should shrink to accommodate the increased height of Area B.
Area C Area C serves as the content area of the page and its height should adjust according to the height of Area B.
Area D Area D should stay fixed at the bottom of the page with an unchanging height.
I would like to know if it is feasible to achieve the above layout using CSS alone or if JQuery is necessary. If CSS can accomplish this, I am interested in understanding how? (Note: I have experience with achieving this using JQuery)
*I am coding in CSS3/HTML5
UPDATE I have included a link to this JSFiddle for reference.
I am uncertain if this question complies with the conditions of Stack Overflow. If not, please feel free to remove it.