I am utilizing Bootstrap 4.1
My current structure is as follows:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
<nav class="navbar navbar-expand-lg bg-transparent navbar-dark align-items-end ">
<button class="navbar-toggler navbar-toggler-left" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse " id="collapsibleNavbar">
<ul class="navbar-nav mr-auto ">
<li class="nav-item">
<a class="nav-link" href="#">News</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Documents</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
</ul>
<ul class="navbar-nav ">
<li class="nav-item ">
<a class="nav-link" style="font-weight:300; display:inline-block" href="">RUS</a>
<font style="font-weight:300" color="white">|</font><a style="font-weight:300;display:inline-block" class="nav-link" href="">ENG</a>
</li>
</ul>
</div>
<ul class="navbar-nav">
<li class="nav-item ">
<a class="nav-link" style="font-weight:300;" href=""><i class="fas fa-user fa-sx"></i> Login</a>
</li>
</ul>
</nav>
<div class="d-flex flex-column" style="border:3px solid green;height:720px; ">
Some content
</div>
When my navbar collapses on smaller screens, it functions well, but upon clicking the "burger icon", .collapse pushes the content located below.
Is there a way to prevent this behavior? I want the revealed div to cover part of the content without expanding it.
I attempted following this suggestion, but it seems it does not work for the navbar.
Any assistance would be greatly appreciated.