A user is working with Shopify Liquid to display two metafields (an image file and rich-text) on the same line within a custom block. Initially, the metafields appeared on separate lines despite attempts to combine them.
Solution provided:
Wrap both metafield tags inside a parent <div> container
The parent div automatically positions child elements inline
Additional styling may be needed on the parent div depending on desired layout
Follow-up question:
The original poster successfully implemented the solution but now wants to control vertical spacing when creating multiple rows of these metafield pairs. Their attempt added excessive space between lines.
Status: The helper suggested using CSS flexbox positioning and referenced MDN documentation on flex container alignment, but specific spacing solution remains pending. The discussion appears ongoing as the exact CSS implementation for controlling row spacing hasn’t been fully resolved.
Summarized with AI on November 13.
AI used: claude-sonnet-4-5-20250929.