center an ul list html code example
Example 1: center ul
dropdwon-menu {
left: 50%;
transform: translateX(-50%);
}
Example 2: how to center a list in html
/* Either center the list directly or center the parent element */
ul {
text-align: center;
}
/* OR */
div .list {
text-align: center;
}