+ 1
How can I center the list?
3 Respuestas
+ 3
To center a list you should be able to user align: center in css or html. Btw If you post your code you will get a better answer.
0
@Ole113 Why it doesn't work?
<html>
<head>
<title>first page</title>
</head>
<body>
<p align="center">
<ol>
<li>Red</li>
<li>Blue</li>
<li>Green</li>
</ol>
</p>
</body>
</html>
- 1
Plug this into your CSS (and make necessary changes according to your code): ul {
display:table;
margin:0 auto;
}