I have designed a form that is enclosed in a Bootstrap 4 Card like this:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row card">
<div class="col-12 card-body">
Sample text in the card body
</div>
<div class="col-12 card-footer">
<div class="row">
<div class="alert alert-warning col-12">Sample alert box</div>
</div>
<div class="row form-group">
<div class="col-6">
<button type="button" class="btn btn-block btn-primary">Save form</button>
</div>
</div>
</div>
</div>
</div>
The normal content should be placed in the div.card-body
, while I positioned an alert box and my "Save form" button in the div.card-footer
.
This setup functions correctly in Chrome version 63 and Firefox version 58. However, when viewed in Internet Explorer 11, the save button and alert exceed the boundaries of the div
(screenshot). How can I rectify this issue?