0
How to align a list to the center of a page in HTML?
2 Réponses
+ 3
Put it inside a div and use align="center".
<div align="center">
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</div>
+ 1
You can use CSS for this. put margin: auto;
<div id= "para">
<ul>
<li>Kandy</li>
<li>Galle</li>
<li>Matara</li>
</ul>
</div>
Put this code in CSS file.
#para{
margin:auto;
}