I’ve been developing a responsive website that works seamlessly on both mobile and desktop. After some tweaking, I managed to get the navigation menu to display just the way I wanted in desktop mode with no dropdowns. However, an issue arises when switching to mobile view – instead of overlaying the div below, the dropdown from the hamburger menu pushes the div down.
Below is a snippet of my HTML code:
<!DOCTYPE html>
<html lang=“en”>
...
Here is the CSS code:
/**********************************
Responsive navbar-brand image CSS
- Remove navbar-brand padding for firefox bug workaround
- add 100% height and width auto ... similar to how bootstrap img-responsive class works
***********************************/
...
I made some modifications to this code based on codeopen. Any help would be greatly appreciated!