html center ul in div code example
Example 1: css ul to center
ul {
justify-content: center;
display: flex;
}
Example 2: center ul
dropdwon-menu {
left: 50%;
transform: translateX(-50%);
}
ul {
justify-content: center;
display: flex;
}
dropdwon-menu {
left: 50%;
transform: translateX(-50%);
}