I am facing an issue with the code below where the last row overflows the parent container. I have tried using overflow: auto;
to fix it, but that just adds scrollbars. Any suggestions on how to prevent the overflow?
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.2/css/bootstrap.min.css">
<style>
#a { height: 33%}
#b { height: 17%}
#c { height: 50%}
</style>
<div class="container border border-warning" style="height: 400px">
<div id="a" class="row bg-primary m-2">A</div>
<div id="b" class="row bg-secondary m-2">B</div>
<div id="c" class="row bg-info m-2">C</div>
</div>