Right-Aligned Columns in Bootstrap 5

How can I put my columns on the right side of the screen in Bootstrap 5?

I tried using order-sm-last and order-sm-2, but neither of those worked.

<div class=“col-sm-4 bg-warning order-sm-last” style=“height: 600px"></div>

I can’t use CSS.

  • Interesting. You say you can’t use CSS, yet you have inline styles in your example. So… you obviously can use CSS. Can’t you just put your stuff in the right-most column? What exactly are you trying to do here?

    – 

  • <div class=“col-sm-4 bg-warning order-sm-last”>

    – 

Leave a Comment