Within my Bootstrap setup, I have a jumbotron positioned 30% from the top of the screen using CSS. Also included is a Navbar that reveals a dropdown menu on mobile screens. It is essential that this dropdown menu always covers the jumbotron across all screen sizes.
In order to achieve this, the height of the navbar dropdown should be calculated as 30% of screen size plus the fixed height of the jumbotron (which may vary depending on the screen size).
Currently, I can manually adjust the height of the navbar dropdown using the following code:
.navbar-nav > li > a {
height: 40px;
padding-top: 15px;
}
However, I am looking for a way to calculate these values dynamically as variables, ensuring that there is a minimum total height for the dropdown menu so it is never too small.
As someone new to Bootstrap and UI design, I am seeking advice on how to approach this task. What would be the best way to accomplish this?