Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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;
}
 
PREVIOUS NEXT
Tagged: #center #list #html
ADD COMMENT
Topic
Name
9+2 =