set flexbox direction vertical css code example Example: display flex column .container { display: flex; flex-direction: column; }