I've written the following code with Bootstrap 4. On the picture below I describe what I want to achieve. Thank you!
<style>
div.jumbotron {
background: #458392 url("img/banner.jpg") no-repeat right;
}
nav.navbar {
background: rgba(69, 131, 146, 0.4);
}
</style>
<body>
<nav class="navbar navbar-toggleable-sm navbar-inverse">
/*some code*/
</nav>
<div class="jumbotron jumbotron-fluid text-white">
/*some code*/
</div>
</body>
If I get it right, your need to actually put your navbar over the banner. Currently they are just set next to each other. Try to adjust the position - absolute or fixed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.