I have a website where I use two columns with modules to display information like this: https://i.sstatic.net/Jp97V.png
However, I work on vertical monitors and when I switch to a more landscape format, the layout looks like this: https://i.sstatic.net/DydKl.png
Here is the current CSS code I am using:
.module2 {
display: block;
border-radius: 0px 0px 25px 25px;
background: url(wallparapet.png) no-repeat;
background-size: cover;
width: 85%;
height: 250px;
margin-top: 30px;
margin-bottom: 30px;
margin-right: auto;
margin-left: auto;
}
.module2inside {
width: 90%;
height: 75%;
top: 20%;
border-radius: 25px;
position: relative;
margin: 0 auto;
background-color: #FFF;
background-color: rgba(255, 255, 255, 0.8);
}
The module2inside represents the translucent inside with the actual content, and module2 is the background to it. Module2inside is just a div inside module2. How can I ensure that the inside stays underneath the cutout area regardless of the width of the page?