display: inline-block
or flex
with width: auto
to make it wrap around content.display: inline-block
or use flex
settings to maintain proper wrapping.If your div block in Webflow is stretching to the full width instead of wrapping tightly around its content (such as a row of images), you need to adjust its sizing and display settings.
Inline Block:
Select the div block.
In the Style panel, go to the Display setting.
Select Inline Block to make it wrap around only the width of its content.
Flexbox (Shrink to Content Width):
Set Display to Flex.
Choose Direction: Row to keep the images in a row.
Under Sizing, set Width: Auto so it only takes the space needed.
width: 100%
, it might be forced to expand.Adjust the div block settings to display: inline-block
or flex
, ensure its width
is set to auto
, and avoid parent elements forcing a full-width container. This will ensure the div only wraps around its content without unnecessary extra space.