Here are the adjustments I made to get closer to the posted image.
Shoutout to @Amaresh S M!
Making Changes:
Removed tabindex -1 from html
Eliminated the i tag in css
Got rid of the unnecessary jquery script for this scenario
To create a menu with 4 parts (3 dynamic and 1 fixed):
Changed container from .container to .container-fluid for full width
Transformed the original container into a col-9 (75% of the width)
Updated all instances of .container in css to col-9
Added a fixed col-3 on the right side (representing the static part of the menu, 25% of the width)
Each of the three parts in col-9 have a width of 33.33%
The single .row occupies 100% of the height
Key Points:
- I introduced classes for the columns col-9 and col-3. Applying CSS to generic classes can impact the entire website negatively.
.row-menu-full-width {
height: 100%;
}
.dynamic-part {
margin: 0 !important;
padding: 0 !important;
background-color: black;
float: left;
}
a {
color:#fff !important;
text-decoration: none !important;
border-bottom:1px dotted #fff;
padding:0px 0px 0px 0px;
width:100%;
display:block;
}
/* Additional CSS Rules... */
.static-part {
margin: 0 !important;
padding: 0 !important;
background-color: lightgray;
float: right;
}
<body>
<div class="container-fluid container-menu-full width">
<div class="row row-menu-full-width">
<div class="col-9 dynamic-part">
<ul class="">
<li class="">
<a href="#">HOME<i class="fa fa-angle-right" style="font-size:20px"></i></a>
<ul class="">
<li class=""><a href="#">Locations</a></li>
/* Nested list items... */
</ul>
</li>
<li ><a href="#">Contact</a></li>
<li ><a href="#">Address</a></li>
<li ><a href="#">News</a></li>
</ul>
</div>
<div class="col-3 static-part">
// Representation of the fixed column
</div>
</div>
</div>
</body>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"/>