Aligning button to the right of a 'card' using Bootstrap v4

22,509

In the latest Bootstrap 4 (alpha 6) pull-right is now float-right:

<div class="card card-block card-outline-primary">
    <p class="card-text">Want to know how much rent you could achieve for your property? &nbsp;
        <a href="#" class="btn btn-outline-primary float-right">Arrange a Valuation</a>
     </p>
</div>

http://www.codeply.com/go/D2i7JWqv4d

Share:
22,509
Michael LB
Author by

Michael LB

Updated on July 31, 2022

Comments

  • Michael LB
    Michael LB almost 2 years

    I'm new to Bootstrap and thought I'd dive in using their v4 alpha release.

    I'm trying to align the 'Arrange a valuation' button (near to bottom of page) in the following example to the right whilst leaving the other text aligned to the left. I also need the text and button to be vertically aligned in the middle.

    http://www.atlasestateagents.co.uk/mlb/landlords/services-and-fees.php

    Can you help?

    <div class="card card-block card-blue clearfix">
        <p class="card-text">Want to know how much rent you could achieve for your property?&nbsp;<a href="#" class="btn btn-blue-outline pull-right">Arrange a Valuation</a></p>
      </div>