JSFiddle - React, Tailwind, and code Playground
by peduarte
HTML
<div id="one">"DIV 1" has to be stucked to "DIV 2"</div>
<div id="two">I wanna "DIV 2" determines the height of "DIV 1"</div>
CSS
html, body {
height: 100%;
min-height: 100%;
}
#one { position: absolute; width: 100%; background: red; top: 0; height: 100%; }
#two { position: absolute; width: 100%; background: yellow; bottom: 0; height: 200 }