Put an image next to text in Phoenix Pro
26 seconds · On-screen instructions
The image-text-layout practice project is already open in Design Mode, with Edit Mode on and Save changes to set to Inline. Select the shared container and set Flex, placement, wrapping, and spacing. Save index.html, then check the finished layout at desktop and phone widths. Download the project from the full guide.
Read the video’s on-screen instructions
- Select the container around the photo and text.
- Open Layout. Change Block to Flex.
- Keep Row. Choose the middle-left placement dot.
- Choose Wrap so the items can stack on a phone.
- Set Gap to 24 px, then press Enter.
- Close the panel. Click Save File to save index.html.
- Turn off Edit Mode to check the finished row.
- Choose iPhone 14 to check the narrow layout.