Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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>
like image 280
Michael LB Avatar asked Nov 08 '15 17:11

Michael LB


1 Answers

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

like image 174
Zim Avatar answered Nov 11 '22 09:11

Zim