1. Home
  2. Css
  3. Flex order

Flex order lets you change the sequence of the page elements. The order attribute takes an integer to set the hierarchy.

        display: flex;
        order: 1;
        order: 2;
        order: 3;
    .flex-order span{
        border: 1px solid #4dc3a4;
        padding: 6px;
<span class="flex-order">
    <span class="flex-order-3">Element 1</span>
    <span class="flex-order-2">Element 2</span>
    <span class="flex-order-1">Element 3</span>

Element 1 Element 2 Element 3

Full Css cheatsheet