I have a unique div containing a combination of CSS styles and a Bootstrap menu. My goal is to integrate the menu within the same div using CSS to achieve the following structure:
ABOUT US - HISTORY QUALITY
To accomplish this, I intend to insert the text "ABOUT US" and then utilize the nav
element to combine it with the menu. Any insights on how I can make this happen? Thank you
You can find a Fiddle showcasing the current menu and styled div.
Html:
<div class="titulo" width:="100px" height:="30px" style="text-align:left;">ABOUT US</div>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-sidebar-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-sidebar-navbar-collapse-1">
<ul class="nav navbar-nav .font_black">
<li>
<a class="font_black" href="#office">HISTORY
<span style="font-size:16px;" class="pull-right hidden-xs showopacity"></span>
</a>
</li>
<li>
<a class="font_black" href="#group">QUALITY
<span style="font-size:16px;" class="pull-right hidden-xs showopacity"></span>
</a>
</li>
<li>
<a class="font_black" href="#global">GLOBAL PRESENCE
<span style="font-size:16px;" class="pull-right hidden-xs showopacity"></span>
</a>
</li>
<li>
<a class="font_black" href="#clients">CLIENTS AND AWARDS
<span style="font-size:16px;" class="pull-right hidden-xs showopacity"></span>
</a>
</li>
<li>
<a class="font_black" href="#sustent">SUSTAINABILITY
<span style="font-size:16px;" class="pull-right hidden-xs showopacity"></span>
</a>
</li>
<li>
<a class="font_black" href="#legal">LEGAL
<span style="font-size:16px;" class="pull-right hidden-xs showopacity"></span>
</a>
</li>
</ul>
</div>
</div>
</nav>
CSS:
.titulo {
height: 40px;
padding: 0 0 0 25px;
font-size: 20px;
font-weight: 600;
background-color: #0039a6;
text-transform: uppercase;
color: #ffffff;
line-height: 40px;
}