Is there a way to center my menu horizontally while keeping the logo aligned to the left and language selection to the right, all with consistent proportions when resizing? I've tried various suggestions but nothing seems to work for my navigation bar. Here is what I have attempted:
CSS:
.nav-bar img {
float: left;
}
.nav-bar {
height: 70px;
width: 100%;
}
#container {
width: 1200px;
margin: 0 auto;
height: 70px;
}
.nav-bar ul {
padding: 0px;
margin: 0px;
text-align: center;
display:inline-block;
vertical-align:top;
}
#menu {
float: left;
}
#languages {
float: right;
}
HTML:
<div id="container">
<img id="logo" src="image.svg">
<ul id="menu">
<li><a href="#">home</a></li>
<li><a href="#">about</a></li>
<li><a href="#">contact us</a></li>
</ul>
<ul id="lang-bar">
<li><a href="#">En</a></li>
<li><a href="#">Fr</a></li>
</ul>
</div>
</nav>