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?
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
2 Likes