Topic: Pull right button

tommykjensen free asked 4 years ago


I have following simple html

<div class="row">
  <div>
    <button mdbBtn type="button" gradient="blue" rounded="true" mdbWavesEffect title="Save draft"><i class="fal fa-save fa-3x"></i></button>
  </div>
  <div class="pull-right">
    <button mdbBtn type="button" gradient="aqua" rounded="true" mdbWavesEffect title="Save PDF" class="pull-right"><i class="fal fa-file-pdf fa-3x"></i></button>  
  </div>
</div>

I would like the save pdf button to appear to the right. So I tried to add "pull-right" in the class not nothing happens. So how do I get one button to be pulled to the right ? Preferably without having to make two collumns in a row.


Konrad Stępień staff answered 4 years ago


Hi @tommykjensen,

Please visit this page to learn about flex styles.

Probably you need something like this:

<div class="d-flex justify-content-between">
  <div>
    <button mdbBtn type="button" gradient="blue" rounded="true" mdbWavesEffect title="Save draft"><i class="fal fa-save fa-3x"></i></button>
  </div>
  <div>
    <button mdbBtn type="button" gradient="aqua" rounded="true" mdbWavesEffect title="Save PDF"><i class="fal fa-file-pdf fa-3x"></i></button>  
  </div>
</div>

Best, Konrad.


tommykjensen free commented 4 years ago

Thank you. I used this on the last icon "class="float-right""



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.8.1
  • Device: pc
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No