What I'm going to ask is what I used with javascript, but I want to achieve it only with css (if possible)
Here is the scenario:
I have a div element whose height is h px. This DIV element has 3 children, which are also DIV elements. Their goal is the following:
The first DIV element is k px high and is attached to the top of the parent container. Its height is constant.
The second div element is n px high and is attached to the bottom of the parent container. Its height is constant.
The third element of the DIV h is (n + k) px.
I want when resizing the parent div (which is a floating field) to automatically save the third div element h - (n + k) px.
Is this possible with just css ?
source
share