<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container mt-3">
<h2>Order</h2>
<p>Change the visual order of a specific flex item(s) with the .order classes. Valid classes are from 0 to 12.</p>
<p>Use .order-sm|md|lg|xl-0-12 to achieve this effect on different screen sizes. The classes can also be combined to make an even more flexible layout.</p>
<p>Resize the browser window to see the effect.</p>
<p><code>.order</code>:</p>
<div class="d-flex mb-3">
<div class="p-2 order-3 bg-info">Flex item 1</div>
<div class="p-2 order-2 bg-warning">Flex item 2</div>
<div class="p-2 order-1 bg-primary">Flex item 3</div>
</div>
<p><code>.order-sm</code>:</p>
<div class="d-flex mb-3">
<div class="p-2 order-sm-3 bg-info">Flex item 1</div>
<div class="p-2 order-sm-2 bg-warning">Flex item 2</div>
<div class="p-2 order-sm-1 bg-primary">Flex item 3</div>
</div>
<p><code>.order-md</code>:</p>
<div class="d-flex mb-3">
<div class="p-2 order-md-3 bg-info">Flex item 1</div>
<div class="p-2 order-md-2 bg-warning">Flex item 2</div>
<div class="p-2 order-md-1 bg-primary">Flex item 3</div>
</div>
<p><code>.order-lg</code>:</p>
<div class="d-flex mb-3">
<div class="p-2 order-lg-3 bg-info">Flex item 1</div>
<div class="p-2 order-lg-2 bg-warning">Flex item 2</div>