I have the following code snippet:
<nav class="hhc-navbar-noshadow navMasterPageAgency">
<div class="container container-nav-master-page-agency ">
<div class="row w-100 align-items-center" >
<div class="row col-12">
<div class="col-1" style="min-width:120px;max-width:120px;width:120px"></div>
<div class="col-8 d-flex align-items-center nav-master-page-agency-links">
<a class="item-menu-famille-metier f1" href="#" >Link1</a>
<a class="item-menu-famille-metier f2" href="#" >Link2</a>
<a class="item-menu-famille-metier f3" href="#" >Link3</a>
</div>
</div>
<div class="row col-lg-1 col-xl-2 pageNameTitle">
<div class="logo-ma-team accueil" >
<img src="unsplash.it/450/150" />
</div>
</div>
</div>
</div>
</nav>
.navMasterPageAgency {
background: #F6F8FF 0% 0% no-repeat padding-box;
width: 100% !important;
height: 130px
}
.nav-master-page-agency-links {
background: #FFF 0% 0% no-repeat padding-box !important;
height: 40px;
}
The nav-master-page-agency-links
should be positioned at the top with a #FFF background
color,
and the rest of the content should follow beneath it with another color.
The issue is that the nav-master-page-agency-links
is within a container, preventing me from making the #FFF background span the entire width of the page while also maintaining its position relative to the logo-ma-team accueil
class.
Although changing to container-fluid
partially solves the problem, the alignment of the remaining page content with the logo is compromised due to being contained rather than fluid.
https://i.sstatic.net/rPU2n.png Any suggestions or assistance would be greatly appreciated. Thank you.