how to align li in center code example
Example 1: center ul
dropdwon-menu {
left: 50%;
transform: translateX(-50%);
}
Example 2: center li in ul css
.list-wrapper {
text-align: -webkit-center;
}
.list-wrapper ul {
display:block;
}
dropdwon-menu {
left: 50%;
transform: translateX(-50%);
}
.list-wrapper {
text-align: -webkit-center;
}
.list-wrapper ul {
display:block;
}