I'm a beginner in the world of web development and currently working on my very first website utilizing HTML and CSS. I have encountered an issue with my menu placement. Ideally, I would like it to be aligned horizontally at the bottom along with my logo, but it seems to be displaying at the top instead.
Below is the code that I am using, could you please provide some guidance on how to resolve this problem?
HTML:
<hgroup>
<div id="Head">
<img src="img/logo.png" width="380" height="100" alt="Logo" />
</div>
<div id="navcontainer">
<ul>
<li><a href="#">HOME</a>
</li>
<li><a href="#">ABOUT</a>
</li>
<li><a href="#">PROJECTS</a>
</li>
<li><a href="#">GALLERY</a>
</li>
<li><a href="#">CONTACT</a>
</li>
</ul>
</div>
</hgroup>
CSS:
#Head {
float:left;
margin-left:120px;
margin-right:150px;
width:200px;
height:150px;
}
/*------------------------*/
#navcontainer {
margin-top: 50px;
}
#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
#navcontainer ul li {
display: inline;
}
#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color:#000;
font-size:18px;
}
#navcontainer ul li a:hover {
color:#008c00;
}