I am facing an issue with three div
elements, where the first (content) contains two nested div
elements.
While in Chrome, the last two div
elements fit perfectly inside the first div, in MS Edge, the last div
does not and starts after the first div on the screen.
How can I ensure that both the last two div
elements fit inside the first div
?
For example, B
and C
should be contained within A
:
.content {
background: #f0f0ed;
border-radius: 5px;
position: relative;
background-color: white;
}
.B{
height: 100%;
margin: 0;
position: relative;
overflow: hidden;
z-index: 1;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
<div class="content">
<div class="B"></div>
<div class="col-12"></div>
</div>