Make an element minus the height of another element in css without display flex. Because flex is a new thing, it is not supported in some browsers which is worrying.
So I have two elements:
<div id="example1">
hello there<br>some text
</div>
<div id="example2">
hi there<br>this is some more text<br>to make this thing more lengthy
</div>
So, because of the text inside #example2
, if #example2
is for example: 100px
in height, I want to make the div #example1
: 100% of page height minus the height of #example2
, 100% - height@#example2
Edit:
If there is no way without flex, let me know.