Reversing the order of an image and text in Webflow for different device views requires using Flexbox properties. Here's a step-by-step guide to achieve this layout change.
1. Use Flexbox for Layout
- Select the parent element containing both the image and text. Ensure it's set to display: flex. This will allow you to use Flexbox properties to reorder child elements.
2. Set Initial Order on Desktop
- Within the Flexbox settings, make sure that the order of the child elements (image and text) is set as desired for the desktop view. This is usually the order they appear naturally in your HTML if you haven't intentionally changed it.
3. Adjust Order for Mobile View
- Switch to the mobile view in Webflow's Designer by clicking on the mobile device icon.
- Select the text element and go to the Style panel. Look for the Flex Child Settings.
- Set the Order value to something higher (e.g., order: 1).
- Select the image and set its Order value to a lower number (e.g., order: 0).
- By increasing the order of the text above the image, you effectively reverse their positions for mobile view.
4. Preview Changes
- Preview your site on different devices using Webflow’s built-in preview tool. Ensure that the text appears above the image on mobile while maintaining the original order on desktop.
Summary
To reverse the order of an image and text in Webflow for mobile while maintaining the desktop arrangement, use Flexbox on the parent element: adjust the order properties for the text and image specifically in the mobile view.