Answers for "how to center a particular list in 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

Code answers related to "how to center a particular list in html"

Browse Popular Code Answers by Language