Is it possible to fill the remaining screen space around div
, located in the center like this:

Red div
has the following properties, since I would like to maintain the same aspect ratio and place it in the center of the screen:
position: absolute;
height: 80%;
width: auto;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
Is it possible to dynamically adjust 4 surrounding divs to fill the remaining space on the screen?
EDIT: red div
is a transparent image
source
share