Currently, I am playing around with Bootstrap 4 and have a card nested inside a card-columns:
<div class="card-columns">
<div class="card">
<div class="card-block">
<h4 class="card-title">iPhone 5S</h4>
<h6 class="card-subtitle text-muted">Rp. 8.999.999</h6>
</div>
<img data-src="holder.js/100%x200" alt="100%x200" data-holder-rendered="true" style="height: 200px; width: 100%; display: block;">
<div class="card-block">
<p class="card-text">Apple iPhone 5S is the most advanced phone from Apple. Get it at a special price from Shopoza! Enjoy 0% installment
</p>
<div class="btn-group open">
<a href="#" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Add to cart</a>
<div class="dropdown-menu" style="
/* min-height: 100%; */
/* overflow: auto; */
/* max-height: 100%; */
/* height: 100%; */
">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
</div>
</div>
<a href="#" class="btn btn-secondary card-link">Quick checkout</a>
</div>
<!-- card block -->
</div>
<!-- card -->
</div>
The card-columns itself is within a container that has a row with a single col-sm-12
column.
This is what appears on the screen:
Button menu displayed into half
What seems to be the issue here? The dropdown-menu
div class has absolute positioning.