I have a row with two cols.
The first col contains some stuff that has to be visible: it shall not overflow the row nor scroll.
The second row contains a long list that I want to scroll through, so it doesn't overflow the row :
The responsive design with the overflow problem:
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://stackpath.bootstrapcdn.com/bttostrap/4.1.3/js/bootstrap.min.js" type="text/js"></script>
<div class="container-fluid">
<div class="row">
<div class="col-8">
<div class="alert alert-info">
<h2>Some stuff</h2>
<hr />
<h4>Some stuff description</h4>
<p>
some example with some <code>code</code>
</p>
</div>
</div>
<div class="col-4 list">
<div class="list-group">
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
<div class="list-group-item"><p>item</p></div>
</div>
</div>
</div>
</div>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…