Reputation: 1055
I've integrated this simple horizontal menu in all my pages of my web app.
https://jsfiddle.net/3u6m4b1w/
When the page is opened on full screen, all is ok (see pic):
But when I switch to responsive (see pic 2) I get this strange problem:
The alert box in yellow become bigger in tall, and the menu is hidden behind the main content!
I've already tried with z-index like:
.nav-list-pagina { z-index:9999; }
but nothing appened.
What I like to obtain is this (photoshop edited):
Anyone can help me find the correct CSS?
UPDATED FIDDLE WITH LAST JQUERY
Upvotes: 0
Views: 45
Reputation: 96
Try this code, should work for overlapping.
.nav-list-pagina {
z-index: 2;
position: relative;
}
Upvotes: 1
Reputation: 972
I suppose you can add clear: both;
CSS property to the .alert
class :
.alert {
position: relative;
padding: .75rem 1.25rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: .25rem;
clear: both;
}
Upvotes: 1