Laying out Forms using Subgrid @MozillaDeveloper
Laying out Forms using Subgrid  @MozillaDeveloper
Uploaded October 2019 | Updated September 2026, 2 weeks ago
It's a common pattern to align form labels and inputs in grid-like layout. I'll show you how to do it quickly using CSS subgrid, with several quick fallbacks. Subgrid will be available in Firefox 71, and you can use it already in Firefox Nightly – but there's no need to wait. Subgrid works great as a quick enhancement on top of you existing layouts!

Demo: codepen.io/mirisuzanne/pen/dybOjLG?editors=1100

#subgrid #CSSGrid #miriamsuzanne
Laying out Forms using SubgridSUMO Community call - November 2025Democratizing Drug Development with AI — ErsiliaBlueprints by Mozilla.ai - Empowering Devs to Build with Open-Source AIMonthly Community Call - August 2026Coding a Dark Mode for your WebsiteQ&A - Continue + techfrenMonthly Community Call - May 2026The Firefox AI PlatformMozilla Builders: Working with the OSS community to build the future of AIDont Wait to Use Subgrid for Better Card LayoutsAsk a Fox event - AMA with the Thunderbird team
Mozilla Developer |

Laying out Forms using Subgrid

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER