HTML
<navid="menu-navigation">
<ul>
<li>
<span class="icon building"></span>
<a href="#" title="">LINK UM</a>
</li>
<li>
<span class="icon services"></span>
<a href="#" title="">LINK UM</a>
</li>
<li>
<span class="icon portfolio"></span>
<a href="#" title="">LINK UM</a>
</li>
<li>
<span class="icon clients"></span>
<a href="#" title="">LINK UM</a>
</li>
<li>
<span class="icon testimony"></span>
<a href="#" title="">LINK UM</a>
</li>
<li>
<span class="icon location"></span>
<a href="#" title="">LINK UM</a>
</li>
<li>
<span class="icon contact"></span>
<a href="#" title="">LINK UM</a>
</li>
<li>
<span class="icon work-with-us"></span>
<a href="#" title="">LINK UM</a>
</li>
<li class="logotipo">
Imagem
</li>
</ul>
</html>
** CSS (LESS) **
// Menu
nav#menu-navigation {
position: absolute;
left: 0px;
top: 0;
margin: auto;
width: 100%;
max-width: 100%;
height: 160px;
z-index: 4;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
background-color: transparent;
ul {
position: absolute;
left: 0px;
top: 0;
right: 0px;
bottom: 0;
margin: auto;
height: 118px;
width: 1280px;
font-size: 0px; // Espaço em Branco entre os Li's
text-align: center;
li {
background-color: #7d858b;
display: inline-block;
border-top: none;
border-bottom: none;
line-height: 45px;
height: 45px;
text-align: center;
text-indent: 0;
padding: 0px 15px;
vertical-align: bottom;
transition: all 1s ease;
&: before {
content: none;
}
&:hover:not(.logotipo) {
border-top: 1px inset #FFF;
border-bottom: 1px inset #FFF;
a {
color: #ef9c2b;
}
}
a {
transition: all 1s ease;
color: #FFF;
font-size: 14px;
}
&.welcome,
&.menu {
display: none;
}
&.logotipo {
display: inline-block;
background-color: transparent;
height: 118px;
line-height: 118px;
}
span.icon {
display: none;
}
span.pipeline {
display: block;
}
}
}
}
In this code above, my last LI is LOGO. The gray bar to your right is to continue (I put it manually to show what I need).
I managed to make the MENU until the logo. But I need that gray bar on the right, and it has to be 100%, that is, it should start from there after the letter O of LOGO and end in the corner of the window no matter the resolution.
I even put a DIV with position:absolute
to make the gray bar, but depending on the resolution, it goes up on top of LOGO, obviously.
I have not put nav#menu-navigation
all gray because the LOGO area is transparent, because there is a slider in the background. Then the gray bar has to come from the left stop before the LOGO and continue to the end.
How can I do this?
-
My biggest problem is how to make the right gray bar that she stay right to the logo.
-
NOTE: The LOGO part is transparent.
ul
can not have background color. -
NOTE 2: It has to be as in the image.