Centering list text but not bullet points/numbers

css
ul
li
ol
text-align:center;

#1

Hi all! I’m a math teacher new to CS and some of my kids want to center their lists using CSS in the personal website, but are disappointed that the bullet points stay left-aligned and only the text centers. Can anyone help me help them center both?


#2

Hi Shannon,

Have them use this code to center their lists with bullets:

ul {
list-style-position: inside;
}
li{text-align: center;
}

I found this on w3schools.com