Skip to content

TypeScript code snippet – How to align text inside an li to its center?

li {
    display: flex;
    flex-direction: row;
    align-items: center;
}
See also  How to add space between menu items in CSS?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.