text aligh center in li code example Example: how to align text inside an li to its center li { display: flex; flex-direction: row; align-items: center; }