I know that I can center an absolute div in front of every other element like this.
HTML
<div class='otherDiv1'></div>
<div class='otherDiv2'></div>
<div class='otherDiv3'></div>
<div class='otherDiv4'></div>
<div class='centerDiv'></div>
CSS
.centerDiv{
position:absolute;
transform:translate(-50%,-50%);
top:50%;
left:50%;
z-indez:100; // Just a test number, just to ensure this div is in front of every other element
}
So in that way the div would be perfectely align to the center and responsive.
So my question is the following:
What is the best way to place 2 divs perfectly align like the previous one like and also be responsive
IN BIG SCREENS
IN SMALL SCREENS
If you have any idea how to do that please let me know (: