Bootstrap – Stacks


Bootstrap – Stacks



”;


This chapter discusses about stacks. A stack is an utility class that can be used to control the stacking of content within a container.

The stack utility class controls the stacking order of elements. Stacks offer a quick and easy way of applying the flexbox properties to create layouts in Bootstrap.


Vertical stack

The class .vstack is used to create vertical layouts. The utilities such as .gap-* can be used to add space between items.

By default, the stacked items are full-width.

The example given below shows the usage of .vstack class: