I am having trouble moving a button from the left side to the right side in Bootstrap 4. I have attempted using both mr-auto and float-right, but neither seems to be working.
Here is my code:
<!-- Page Content -->
<div class="container">
<!-- Page Heading -->
<h1 class="my-4">Page Heading
<small>Secondary Text</small>
</h1>
<!-- Project One -->
<div class="row shadow m-b-2">
<div class="col-md-4">
<a href="#">
<img class="img-fluid rounded mb-3 mb-md-0" src="http://placehold.it/700x300" alt="">
</a>
</div>
<div class="col-md-8 p-3">
<h5>Project One</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium veniam exercitationem expedita laborum at voluptate. Labore, voluptates totam at aut nemo deserunt rem magni pariatur quos perspiciatis atque eveniet unde.</p>
</div>
<div class="mr-auto"> <a class="btn btn-primary btn-sm" href="#">View Project</a></div>
</div>
<!-- /.row -->
<hr>
</div>
<!-- /.container -->
Here is my Fiddle: https://jsfiddle.net/apcz8jtw/