How can I align two images with different widths next to each other and make them have the same height in Webflow?

Published on
September 22, 2023

To align two images with different widths next to each other and make them have the same height in Webflow, you can follow these steps:

  1. Add a Div Block element to your Webflow project where you want the images to be placed.

  2. Inside the Div Block, add two Image elements for the images you want to align.

  3. Set the Display property of the Div Block to Flex. This will allow you to control the alignment and spacing of the images.

  4. To align the images horizontally, select the Div Block and go to the Flex Settings panel. Set the Justify property to Space-between or Space-around. This will distribute the available space evenly between the images, pushing them to the left and right edges of the Div Block.

  5. By default, the images will have their original heights, which may not be the same. To make them have the same height, select both images and go to the Size panel. Set the Height property to a fixed value or a percentage, depending on your requirements.

  6. If you want the images to maintain their aspect ratio while adjusting the heights, you can use a combination of the Height and Width properties. For example, you can set the Height property to auto and the Width property to 100%. This will make the images stretch to fill the available height while maintaining their original aspect ratio.

  7. If you need further fine-tuning, you can adjust the Margin or Padding properties of the Image elements to create additional spacing between them.

By following these steps, you can align two images with different widths next to each other and make them have the same height in Webflow.

Additional Questions:

  1. How do I center-align two images with different widths in Webflow?
  2. Can I make images responsive in Webflow while maintaining their aspect ratio?
  3. How can I create a grid layout for images in Webflow?