Need help on the horizontal form layout. Looks great on desktop and displays squished on mobile. Is there CSS code to fix this to allow the fields to stack on mobile?
Hi there, @Kevin11 ![]()
Thanks for sharing a screenshot!
This is the expected behavior for the mobile view because of the smaller width on mobile devices. Could you please specify how exactly you’d like to stack fields? I’ll be happy to check if there is a custom solution ![]()
Thanks. Yes, I would like each field to just be stacked vertically on mobile view.
Got it, thanks!
Please add this code to the Custom CSS field on the Appearance tab of your widget’s settings and let me know if you like the result ![]()
@media (max-width: 600px) {
[class*="HorizontalLayout__Grid-sc"] {
display: flex;
flex-direction: column;
gap: 10px;
}
[class*="HorizontalLayout__HorizontalSubmitButton-sc"] {
margin: 0;
}
.es-field-layout-container {
padding: 0;
}
}
Perfect @Max thank you!
It’s my pleasure!
In the meantime, we’d like to invite you to join our Birthday Contest, where you could win 6 FREE Months for your subscription.
Check the details and join in: Birthday Contest: 10 Winners, 5 Free Years with Elfsight! 🎁


