Answers for "align center in a li html"

CSS
-1

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;
}
Posted by: Guest on February-25-2021

Browse Popular Code Answers by Language