How can I line up two collection lists horizontally next to each other in Webflow?

Published on
September 22, 2023

To line up two collection lists horizontally next to each other in Webflow, you can use a combination of Flexbox and custom CSS. Follow these steps to achieve the desired layout:

  1. Create a wrapper div: Start by creating a new div element to act as a container for both collection lists. Give this div a class name, such as "collection-wrapper".

  2. Add a collection list: Place one collection list inside the "collection-wrapper" div. Customize the collection list as needed, including the layout, number of items displayed, and any additional settings.

  3. Duplicate the collection list: Duplicate the first collection list and place it next to the original one inside the "collection-wrapper" div. You can either duplicate the element or use copy-paste.

  4. Flexbox setup: Select the "collection-wrapper" div and set its display property to "Flex". This will enable you to control the alignment and spacing of the collection lists within the wrapper.

  5. Adjust flex properties: With the "collection-wrapper" div still selected, go to the Flexbox settings in the Styles panel. Configure the following properties to align the collection lists horizontally:

  • Direction: Set the direction to "Row". This will ensure the collection lists are placed side by side.
  • Justify: Choose your preferred alignment for the collection lists. Common options include "Flex Start", "Center", or "Flex End".
  • Align: Select the desired vertical alignment for the collection lists, such as "Center" or "Flex Start".
  1. Custom CSS (optional): If you need to further customize the spacing or appearance of the collection lists, you can use custom CSS. For example, you can add margin or padding to the individual collection lists within the wrapper.

Once you've completed these steps, your two collection lists should be aligned horizontally next to each other on the page. Feel free to adjust the styling and layout as needed to achieve the desired visual result.

Additional Resources:

  • Webflow University: Flexbox Tutorial

Example CSS:

.collection-wrapper {  display: flex;  flex-direction: row;  justify-content: center;  align-items: center;}.collection-list {  margin-right: 20px;}

Please note: Remember to replace .collection-wrapper and .collection-list with the appropriate class names you have used in your project.


Additional Questions:

  1. How do I customize the layout of a collection list in Webflow?
  2. What is Flexbox and how can I use it in Webflow?
  3. How can I add custom CSS to my Webflow project?