Posted on Leave a comment

How to center UL with CSS – HTML

Ever wondered how to center a ul with css in a html page ?


<link rel="stylesheet" type="text/css" href="style.css" />


<div id="center">


ul li 
	display: inline;


	color: black;
	font-weight: bold;
	font-size: 30px;
	text-align: center;

And the result




Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.