I have a requirement on which we have Header, Middle Section and Footer.
Header and Footer height can be more or less depending on the various screen sizes and content within them.
Footer will be sticky, at the end of the screen if the page doesn't contain scroll and should not overlap over the middle content if scrolling occurs for small screens. Typical sticker footer behavior.
Middle section contains two columns. And Each column content should be vertically center aligned.
Please refer below screenshot for reference what
Note: I can use normal sticky footer and CALC to adjust the height of the main content, but it will not be dynamic. I don't want to use javascript to do all mathematics on DOMContentLoaded and window resize.