In order to center align the content in the nav bar and keep the float left property without causing any issues, consider using display: inline-block. Additionally, you may want the dropdown bar for the left thing to start at the image's left side and expand towards the right.
Check out the demo fiddle for a visual representation.
HTML Code:
<div id="nav">
<div id="container">
<ul>
<li>
<a href="#"> Left thing </a>
<ul>
<li><a href="#"><----- want it to go this way</a></li>
<li><a href="#">i want this to start under left thing</a></li>
</ul>
</li>
<li>
<img src="http://www.jonathanjeter.com/images/Square_200x200.png" style="height:70px" />
</li>
<li>
<a href="#"> Right thing </a>
<ul>
<li><a href="#">This starts right</a></li>
<li><a href="#">And this is right</a></li>
</ul>
</li>
</ul>
</div>
</div>
CSS Styling:
* {
padding: 0;
margin: 0;
}
#body {
padding: 0;
margin: 0;
font-family: Arial;
font-size: 17px;
}
#nav {
background-color: #72776A;
width: 100%;
position: fixed;
height: 50px;
}
#nav ul {
list-style-type: none;
padding: 0;
margin: 0;
position: relative;
display: block;
}
#nav ul li {
float: left;
}
#container {
text-align:;
}
#nav ul li:hover {
background-color: #333;
}
#nav ul li a, visited {
color: #ACD661;
display: block;
padding: 15px;
text-decoration: none;
}
#nav ul li:hover ul {
display: block;
}
#nav ul ul {
display: none;
position: absolute;
color: red;
border: 1px solid black;
}
#nav ul ul li {
display: block;
}
#nav ul ul li a:hover {
color: #6699;
}