How can I align the text in the "MEET US" section to stay fixed to the right with a 20-30px separation from the photo in Webflow?

TL;DR
  • Wrap photo and text in a horizontal Flex container with a 20–30px gap or margin-left on the text.  
  • Set text alignment to right and adjust layout for responsiveness on smaller screens.

To align the text in the "MEET US" section so it stays fixed to the right of a photo with a 20–30px gap, you need to adjust the layout using Webflow’s flex or grid tools.

1. Use a Flex Container

  • Wrap the image and text in a parent div block.
  • Set the parent div’s display to Flex – Horizontal.
  • Set Justify to Start and Align to Center (if vertical alignment is needed).
  • Use Gap in the Flex settings or add margin-left to the text container:
  • For 20–30px separation, either:
    • Add a Gap: 20px (in the Flex layout settings), or
    • Add Margin-Left: 20px to the text block.

2. Align the Text to the Right

  • Inside the text container, set the text alignment to Right.
  • Ensure that the text container div is only as wide as needed, or manually set its width (e.g., 40-60% depending on layout).
  • If needed, apply Padding-Right to keep content away from the edge.

3. Ensure Responsiveness

  • On smaller viewports, consider changing the parent layout to Vertical (Column) under the Flex settings, so the image stacks on top of the text.
  • Adjust margins/paddings as needed for mobile.

Summary

Wrap the photo and text in a Flex container (horizontal), apply a gap or margin-left to space them, and set the text to align right within its container. Adjust for responsiveness using Webflow’s layout overrides.

Rate this answer

Other Webflow Questions