How can I rearrange my collection list in Webflow to read from left to right on mobile and desktop?
To rearrange your collection list in Webflow to read from left to right on both mobile and desktop, you can use a combination of Flexbox and Grid layout to achieve the desired layout.
Follow these steps:
Select your collection list element on the canvas by clicking on it.
In the Styles panel on the right-hand side, change the display property to
Flex
.Once the collection list is set to display as flex container, you can control the order and arrangement of the collection items using the
Order
property. By default, all items will have an order of 0.To change the order, you can adjust the
Order
property for each collection item individually. Items with a lower order value will appear before items with a higher order value. For example, to make the first item appear last, set its order value to a higher number (e.g., 1) compared to other items in the collection list.To create a responsive layout for mobile and desktop, you can leverage Grid layout as well. Select the parent container of the collection list (e.g., a section or div block) and set its display property to
Grid
.With the parent container set to display as a grid, you can now control the arrangement of items on different screen sizes using media queries in the Styles panel. Create a media query for the desired breakpoint (e.g., one for mobile and one for desktop).
In each media query, specify the grid layout properties such as
grid-template-columns
to define the column arrangement. For example, you can set it to1fr 1fr
to display the items in a two-column layout for both mobile and desktop.
By using a combination of Flexbox and Grid layout, you can easily rearrange your collection list to read from left to right on mobile and desktop devices. Remember to preview and test your layout on different devices to ensure it appears as intended.
Additional Questions:
- How do I adjust the spacing between collection items in Webflow?
- Can I add custom code to my Webflow project?
- What other layout options does Webflow offer for arranging content?