You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use these classes to adjust the alignment of an individual flex item on the cross axis. This overrides any `align-items` property applied to the flex container.
@@ -576,6 +600,49 @@ Use these classes to adjust the alignment of an individual flex item on the cros
576
600
</div>
577
601
```
578
602
603
+
## Order
604
+
605
+
Use these classes to change the order of flex items. Keep in mind that it won't affect screen readers or navigating with the keyboard and it's advised to keep the markup in a logical source order.
606
+
607
+
#### CSS
608
+
609
+
```css
610
+
.flex-order-1 { order: 1; }
611
+
.flex-order-2 { order: 2; }
612
+
.flex-order-none { order: inherit; }
613
+
614
+
```
615
+
616
+
#### Classes
617
+
618
+
| Class | Description |
619
+
| --- | --- |
620
+
|`.flex-order-1`| Set order to be 1 |
621
+
|`.flex-order-2`| Set order to be 2 |
622
+
|`.flex-order-none`| Remove order (typically used with responsive variants) |
Copy file name to clipboardExpand all lines: pages/css/utilities/layout.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,16 @@ Use `.width-full` to set width to 100%.
190
190
</div>
191
191
```
192
192
193
+
Use `.width-auto` to reset width to `auto` (initial value). Typically used with **responsive variants**. Resize the window to see the effect in the example below.
194
+
195
+
```html
196
+
<divclass="d-table width-full width-md-auto">
197
+
<divclass="d-table-cell">
198
+
<inputclass="form-control width-full"type="text"value="Responsive width form field"aria-label="Sample full responsive width form field">
0 commit comments