When I align a unordered list to the center, how do I align the bullets too? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When I align a unordered list to the center, how do I align the bullets too?

I used <ul type=disk align="center"> <li> ...</li> <li> ...</li> <li> ...</li> </ul> and also tried <ul type=disk> <li align="center"> .... </li> <li align="center"> .... </li> <li align="center"> .... </li> </ul>

4th Mar 2017, 11:34 AM
Clarisse Karsh
Clarisse Karsh - avatar
2 Answers
+ 6
I haven't tried this but it might work. <body> <center> <ul> <li>...</li> <li>...</li> <li>...</li> </ul> </center> </body>
4th Mar 2017, 2:43 PM
The Coding Sloth
The Coding Sloth - avatar
+ 5
if I'm right, the center tag is not supported anymore by HTML5 so I would suggest styling it with css
4th Mar 2017, 6:28 PM
RJP
RJP - avatar