I'm trying to create a very basic menu but having some problems why its not alligning horizontally showing up, any help would be appreciated... Code is:
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow:hidden;
}
li {
float: center;
}
a:link, a visited {
font-family: arial;
display: block;
width: 120px;
color: white;
background color: #BBDB88;
text-align: center;
}
a:hover, a:active {
background-color: #69C08A;
}
<div id="header">
<h1>Portfolio</h1>
</div>
<body>
<ul>
<li><a href="#HomePage">Home</a></li>
<li><a href="#AboutMe">About Me</a></li>
<li><a href="#Coding">Coding</a></li>
<li><a href="#Contacts">Contacts</a></li>
</ul>
</body>
</html>