+ 1

Does anyone know how to align an ordered list with unordered subsections to the center of the page using html and or css?

I can align the text but not the numbers/bullet points. Please help!

26th Feb 2021, 3:19 PM
Ava
Ava - avatar
2 Respuestas
+ 2
<head> <title>Page Title</title> <style> div{ background-color:red; display:flex; justify-content:center; } </style> </head> <body> <div> <ol> <li>hey</li> </ol> </div> </body>
26th Feb 2021, 3:39 PM
Abhay
Abhay - avatar
+ 1
Thank you so much, Abhay! It worked!
1st Mar 2021, 2:11 PM
Ava
Ava - avatar