Fills remaining vertical space evenly using flex. Key is using flex grow and flex basis with parent at 100% height.
No-Library (pure JS), HTML, CSS, JavaScript
Change class name on click in jQuery
jQuery 2.2.4, HTML, CSS, JavaScript
z-Index and stacking context using html table
jQuery 1.11.0, HTML, CSS, JavaScript