display: flex and flex-direction: column code example Example: css flex .container { display: flex; /* or inline-flex */ }