I am trying to create a container in bootstrap with a button on the bottom floating on the right. Unfortunately, the button is leaving the div. Why is this happening and how can I prevent this? Here is a copy of the HTML
<body>
<div class="container">
<p>
...
</p>
<button type="button" class="btn btn-primary float-right">Primary</button>
</div>
</body>
CSS
.container {
border: 1px solid black;
}
and a plunker: https://plnkr.co/edit/9DUn1CUj0g6NPhEmqeB9?p=preview