![]() |
VOOZH | about |
Bootstrap 5 Columns Reordering Order Classes are used to set the visual order of the columns inside a row irrespective of their position in the Document Object Model.
Bootstrap 5 Columns Reordering Order Classes:
Note: * can be a number from 0-5 and ** replace the screen size like "sm", "md", "lg", "xl", "xxl".
Syntax:
<div class="row"> <div class="col order-3">...</div> ... </div>
Example 1: In this example, we used the order classes to change the visual orders of the columns in a row.
Output:
Example 2: In this example, we used the order-first and order-last classes to set the first and last columns in the row forcefully.
Output:
Reference: https://getbootstrap.com/docs/5.2/layout/columns/#order-classes