I have this problem, I have two divs:
<
Since you know how many pixels are occupied by the previous content, you can use the calc() function:
calc()
height: calc(100% - 50px);