vertical center elements in a div code example Example: center elements vertically in div .container { display: flex; align-items: center; }