I'm struggling with my bootstrap setup. When I switch to small devices, my content overlaps with the next div. I've tried adjusting margins and positioning, but nothing seems to solve the issue. I suspect it has something to do with the relative position I'm trying to add for the SVGs at the bottom of each div.
Here's the HTML:
<div class="container-fluid vh-100 " id="projects">
<div class="row align-items-center mx-auto " id="cards">
<div class="col-sm-6 col-lg-4 ">
<div class="card" >
<img src="pics/project1.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
...
</div>
<svg class="botp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"></svg>
</div>
...
</div>
<!-- /contact -->
Here's my CSS:
#home,
#about,
#projects,
#contact{
position: relative;
}
#projects .botp{
z-index: 1;
position: absolute;
bottom: 0;
left:0;
}
#cards{
z-index: 2;
}
#contact .botc{
position: absolute;
bottom: 0;
left:0;
}