Within the realm of Bootstrap 3, I've crafted a navbar that showcases a background image alongside a series of menu items positioned below said image:
The following snippet of CSS handles the background image:
.navbar-fixed-bottom .navbar-collapse {
padding-left: 0;
padding-right: 0;
margin-top: 25px;
background: url(../Content/images/1.png), url(../Content/images/2.png);
background-repeat: no-repeat, no-repeat;
background-position: -25px 0px, 528px 54px;
These two images necessitate explicit pixel-based positioning in order to seamlessly meld together.
To align the menu items directly beneath the image, I employ the use of navbar-right:
@media (min-width: 768px) {
.navbar-left {
float: left !important;
}
.navbar-right {
float: right;
margin-right: 150px;
}
.navbar-right ~ .navbar-right {
margin-right: 50px;
}
}
While everything operates smoothly under normal circumstances, scaling down the screen size causes the menu items to shift to the left:
I'm left pondering the mechanics of maintaining the menu items' alignment in relation to the background image, thereby ensuring responsiveness.