I was designing a responsive menu and I have four elements which are to go on the left side and one on the right one. Now, the thing is I don't know how to position the right one so that it is responsive and as I resize the window it stays still (like in https://teamtreehouse.com).
The html is the following:
<nav id="menu">
<nav id="menucenter">
<ul>
<li><a href="index.html">Quién soy?</a></li>
<li><a href="index.html">Creatividad</a></li>
<li><a href="secondarypages/schedule.html">Acción</a></li>
<li><a href="secondarypages/places.html">Servicio</a></li>
<li><a href="secondarypages/places.html">Servicio</a></li> <- element I want on the right side
</ul>
</nav>
</nav>
The css is:
#menu {
padding: 5px;
background-color: rgb(50,50,50);
}
#menucenter {
padding: 10px;
padding-bottom: 0px;
position: relative;
}
#menucenter ul {
list-style-type: none;
margin:0px;
padding: 5px;
overflow: scroll;
background-color: rgb(50,50,50);
}
#menucenter li {
float: left;
padding-bottom:6px;
}
#menucenter li.highlight{
top:42px;
border-bottom:solid 3px #5CF1B3;
border-radius: 2px;
position: absolute;
}
#menucenter li a {
display: inline;
color: white;
text-align: center;
padding: 10px 16px;
text-decoration: none;
background-color: rgb(50,50,50);
border-bottom:solid 1px #00b3b3;
}
Thank you in advance!