Why should I use a container instead of a stack?

What a container can do but a stack cant?

Hey @user321

Stacks and containers share many of the same capabilities when it comes to sizing and design. The main difference lays is their layout capabilities.

Stack allows you to ensure all stacked elements stay in order and maintain their spacing, which can be defined per breakpoint.

The main advantage containers have, is the ability to apply CSS grid on them, in order to organize your content in rows and/or columns.

To enjoy all these capabilities, you can always stack elements inside a container.

Hope this helps! :slightly_smiling_face:

1 Like

thanks for the answer.

1 Like