I am making a website with a one-page layout, where every section is full-width and has the same height as the viewport. I use bootstrap to make the content inside these sections responsive, but my columns overlap (instead of stacking) when I decrease the viewport size and I can't figure out why.
Here is (part of) my css & html (hopefully it provides enough information to determine the problem):
.contact {
min-height: 100vh;
background-color: rgb(225, 138, 64);
position: relative;
}
#map {
height: 40vh;
width: 80%;
background: white;
position: absolute;
margin-top: 270px;
margin-left: 20px;
display: block;
}
.otherdiv {
height: 40vh;
width: 80%;
background: white;
position: absolute;
margin-top: 270px;
margin-left: 20px;
display: block;
}
.maxWidth {
max-width: 90%;
}
<div id="contact" class="contact">
<div class="container maxWidth">
<h1>Contact</h1>
<div class="row">
<div class="col-md-6">
<p>Some text.</p>
<div id="map"></div>
</div>
<div class="col-md-6">
<div class="otherdiv"></div>
</div>
</div>
</div>
</div>