M
Majid Design System
Search (⌘K)
Cart
Width control
Full-width sections compared side by side with <flux:container> and the "container" prop.
/en/layouts/container
<body>
    <flux:header container>…</flux:header>

    <flux:main container>
        <flux:container>…</flux:container>
    </flux:main>

    <flux:footer container>…</flux:footer>
</body>
header
main
footer

The colored band is full width but its contents are kept centered with flux:container.

container
Contained area

The prop on flux:header, flux:main and flux:footer; it centers the contents at max-w-7xl. This very page uses it.

flux:container
Manual containment

For sections whose background runs full width but whose contents must stay centered — like the green band at the bottom of this page.

Full width

The default: the area only gets padding and stretches to the edges of the page — what the sidebar layouts use.

Orders today
128
+12%
Sales today
184,500,000 Toman
+8%
Returns
7
−3%
Average rating
Flat
Flash deals

Ends in:

07 hours
42 min
00 sec
Ships today
Samsung Galaxy S25, 256 GB

Samsung Galaxy S25, 256 GB

13%
48,900,000
42,500,000 Toman

AirSound Pro wireless headphones

1,890,000 Toman
Best seller
One Hundred Years of Solitude by Gabriel García Márquez

One Hundred Years of Solitude by Gabriel García Márquez

30%
350,000
245,000 Toman

Fit Band 8 smartwatch

3,200,000 Toman
Subscribe to the newsletter
This band is full width, but its contents are kept centered with flux:container.

Majid Design System — built on Flux UI and Tailwind CSS

All layouts
Dark / light mode