Flex layout display as box when previewing

Hello,

Not sure what am i doing wrong.
I have a simple flex layout to wrap my locale with an icon.
While in the designer it looks great as expected.
When previewing, it looks like a box layout stacking things.

here is a screenrecording of the issue:

here is my preview link
https://preview.webflow.com/preview/to-delete-video-html5?utm_medium=preview_link&utm_source=designer&utm_content=to-delete-video-html5&preview=5dfd2d2507631dc2976ca09619c444b3&workflow=preview

Hi Anthony,

You need to add an extra div element and apply flex to that element, because Webflow changes the HTML structure in the preview to make your language switch work.

See the attached screenshot:

Kind regards,
Edwin

1 Like

awesome, thank you @edwine1987 !

1 Like