We would like to know how to increase spacing between horizontal menu items.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
li {<!--from w w w.j a v a 2 s. c o m-->
display: inline;
padding: 10px 40px;
}
</style>
</head>
<body>
<div id="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</body>
</html>
The code above is rendered as follows: