+ 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!
2 Answers
+ 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>
+ 1
Thank you so much, Abhay! It worked!