diff --git a/docs/layout/grid.md b/docs/layout/grid.md index ca3537e843..2eb704550f 100644 --- a/docs/layout/grid.md +++ b/docs/layout/grid.md @@ -162,6 +162,22 @@ For example, here are two grid layouts that apply to every device and viewport, {% endexample %} +Equal-width columns can be broken into multiple lines, but there is a [Safari flexbox bug](https://github.com/philipwalton/flexbugs#11-min-and-max-size-declarations-are-ignored-when-wrapping-flex-items) that prevents this from working without an explicit `flex-basis` or `border`. Our example works thanks to the `border` being set; you can do the same with `.col { border: 1px solid transparent; }`. Alternatively, you can set the flex-basis to the width of the column (e.g., `.col { flex: 1 0 50%; }`). + +
+{% example html %} +
+
+
Column
+
Column
+
+
Column
+
Column
+
+
+{% endexample %} +
+ ### Setting one column width Auto-layout for flexbox grid columns also means you can set the width of one column and have the sibling columns automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths. Note that the other columns will resize no matter the width of the center column.