Yes, you can stack two images in Webflow with just one click if they have the same size. Webflow's built-in layout system makes it easy to achieve this.
Here's step-by-step guide on how to stack images with the same size using Webflow:
1. Create a new section: Start by adding a new section to your Webflow project. You can do this by clicking on the "+" button or selecting the "Section" element from the Elements panel.
2. Add an image element: Within the section, click on the "+" button again or select the "Image" element from the Elements panel. This will insert an image element into your section.
3. Upload the first image: With the image element selected, you can either click on the "Upload" button to choose an image file from your computer or drag and drop the image directly into the editor.
4. Adjust the image size: By default, the image might appear larger than your desired layout. To fix this, click on the image element, go to the Style panel, and adjust the width and height properties to ensure it fits within the section.
5. Duplicate the image element: With the image element selected, press "Ctrl/Cmd + D" or right-click on the element and select "Duplicate" to create an identical copy of the first image element.
6. Upload the second image: Select the duplicated image element and replace the image with your second image file using the same process as in step 3.
7. Position the images: By default, the duplicated image will appear right below the original image. To stack them vertically, you can adjust the top or bottom margin of the duplicated image element. Select the duplicated image, go to the Style panel, and add a specific margin value to create the desired vertical separation.
8. Fine-tune the layout: Depending on your design requirements, you may need to adjust the spacing, alignment, or other styling properties of the section or images. Use the Style panel to customize these aspects until you achieve the desired look.
Remember to save your changes and publish your site when you're done. You can now see the two images stacked on top of each other with just one click in Webflow.
This approach allows you to stack images quickly when they have the same size, eliminating the need for manual repositioning. If the images have different sizes, additional adjustments might be necessary to ensure proper alignment and layout.