Hallo ich habe das Poblem das mein Dropdown Menü aus der Navigation hinter dem Slider oder auf Unterseiten hinter dem nächsten Wrapper verschwindet.

Ich habe bereits was über den Z-Index gelesen und ausprobiert, doch dies hat nicht geholfen.
Wenn ich teilweise das Overflow:hidden oder das Margin: 0 auto; der Navigationsleiste entferne wird es zwar richtig angezeigt, zerschießt mir aber das restliche Layout:
OHNE Overflow:hidden in der Navigation:

MIT Overflow:hidden in der Navigation:

Würde mich freuen wenn mir vielleicht jemand von euch bei meinem Problem weiterhelfen kann :)
Hier etwas aus meinem CSS Code:
@charset "utf-8";
/*
* CSS-Design
*Webseite
*/
/* Reset * * * * * * * * */
*{
margin: 0;
padding: 0;
}
body{
font: 400 15px/24px'Montserrat', Helvetica, Arial, sans-serif;
color: #fff;
width: 100%;
}
/* Layout * * * * * * * * */
.wrapper{
width:1164px;
margin: 0 auto;
overflow: hidden;
}
#header{
background: #fff;
padding: 22px 0;
}
#teaser{
}
#contenttop{
text-align: center;
margin-top: 20px;
padding-top: 80px;
padding-bottom: 20px;
background-color: #030303;
}
#contenttop h2{
color: #b9587a;
font-family: 'Poppins', sans-serif;
font-style: italic;
font-weight: 300;
font-size: 32px;
padding-bottom: 25px;
}
#contenttop h1{
color: #fff;
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 300;
font-size: 35px;
}
#content{
background-color: #030303;
}
a .img-content{
position: absolute;
top: 204px;
width: 368px;
text-align: center;
background: #146685;
padding: 5px 15px 5px 20px ;
color: #fff;
font-family: 'Montserrat', sans-serif;
font-weight: 400;
font-size: 30px;
line-height: 30px;
}
a .img-content:hover{
color: #146685;
background: #fff;
}
#content h2{
color: #b9587a;
font-size: 28px;
font-family: 'Poppins', sans-serif;
font-weight: 300;
margin-bottom: 15px;
font-style: italic;
padding-bottom: 10px;
}
#content h3{
color: #b9587a;
font-size: 20px;
font-family: 'Poppins', sans-serif;
font-weight: 300;
margin-bottom: 15px;
font-style: italic;
padding-bottom: 10px;
}
#content p{
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 100;
font-size: 18px;
line-height: 28px;
word-spacing: 2px;
color: #fff;
}
#content p .button{
background-color: #146685;
float: right;
color: #fff;
text-decoration: none;
margin-top: 20px;
padding: 3px 25px;
border-radius: 6px;
font-size: 20px;
font-family: 'Montserrat', sans-serif;
font-weight: 400;
}
#content p .button:hover{
color: #146685;
background-color: #fff;
font-weight: 500;
}
#content .col_1_5 p{
font-family: 'Montserrat', sans-serif;
font-weight: 100;
font-size: 16px;
}
/* Spalten * * * * * * * * */
.col_1, .col_1_2, .col_1_3, .col_1_4, .col_1_5, .col_1_6, .col_1_7{
float: left;
}
.col_1{
width:455px;
margin: 105px 10px;
float: right;
}
.col_1_2{
width: 620px;
margin: 60px 10px;
}
.col_1_3{
margin: 20px 10px;
width: 368px;
position: relative;
}
.col_1_4{
margin: 60px 10px;
}
.col_1_5{
width: 555px;
margin: 40px 40px;
position: relative;
}
.col_1_6{
float: left;
margin: 20px 10px;
position: relative;
}
.col_1_7{
margin: 25px 40px;
}
/* NavBar * * * * * * * * */
.navbar{
float: right;
font-size: 18px;
font-weight: 500;
font-family: 'Montserrat', sans-serif;
}
.navbar ul{
display: inline-block;
width: 100%;
}
.navbar ul li{
display: inline-block;
position: relative;
}
.navbar ul li a{
display: inline-block;
color: #146685;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 15px;
transition: all ease 0.3s;
}
.navbar ul li a:hover{
color: #b9587a !important;
}
.navbar ul li.dropdown ul{
background-color: #fff;
color: #146685;
font-size: 16px;
font-weight: 500;
font-family: 'Montserrat', sans-serif;
position: absolute;
left: 0;
padding-left: 0;
min-width: 142px;
display: none;
z-index: 12;
}
.navbar ul li.dropdown ul li a{
color: #146685;
width: 180px;
}
.navbar ul li.dropdown:hover ul{
display: block;
}

Ich habe bereits was über den Z-Index gelesen und ausprobiert, doch dies hat nicht geholfen.
Wenn ich teilweise das Overflow:hidden oder das Margin: 0 auto; der Navigationsleiste entferne wird es zwar richtig angezeigt, zerschießt mir aber das restliche Layout:
OHNE Overflow:hidden in der Navigation:

MIT Overflow:hidden in der Navigation:

Würde mich freuen wenn mir vielleicht jemand von euch bei meinem Problem weiterhelfen kann :)
Hier etwas aus meinem CSS Code:
@charset "utf-8";
/*
* CSS-Design
*Webseite
*/
/* Reset * * * * * * * * */
*{
margin: 0;
padding: 0;
}
body{
font: 400 15px/24px'Montserrat', Helvetica, Arial, sans-serif;
color: #fff;
width: 100%;
}
/* Layout * * * * * * * * */
.wrapper{
width:1164px;
margin: 0 auto;
overflow: hidden;
}
#header{
background: #fff;
padding: 22px 0;
}
#teaser{
}
#contenttop{
text-align: center;
margin-top: 20px;
padding-top: 80px;
padding-bottom: 20px;
background-color: #030303;
}
#contenttop h2{
color: #b9587a;
font-family: 'Poppins', sans-serif;
font-style: italic;
font-weight: 300;
font-size: 32px;
padding-bottom: 25px;
}
#contenttop h1{
color: #fff;
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 300;
font-size: 35px;
}
#content{
background-color: #030303;
}
a .img-content{
position: absolute;
top: 204px;
width: 368px;
text-align: center;
background: #146685;
padding: 5px 15px 5px 20px ;
color: #fff;
font-family: 'Montserrat', sans-serif;
font-weight: 400;
font-size: 30px;
line-height: 30px;
}
a .img-content:hover{
color: #146685;
background: #fff;
}
#content h2{
color: #b9587a;
font-size: 28px;
font-family: 'Poppins', sans-serif;
font-weight: 300;
margin-bottom: 15px;
font-style: italic;
padding-bottom: 10px;
}
#content h3{
color: #b9587a;
font-size: 20px;
font-family: 'Poppins', sans-serif;
font-weight: 300;
margin-bottom: 15px;
font-style: italic;
padding-bottom: 10px;
}
#content p{
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 100;
font-size: 18px;
line-height: 28px;
word-spacing: 2px;
color: #fff;
}
#content p .button{
background-color: #146685;
float: right;
color: #fff;
text-decoration: none;
margin-top: 20px;
padding: 3px 25px;
border-radius: 6px;
font-size: 20px;
font-family: 'Montserrat', sans-serif;
font-weight: 400;
}
#content p .button:hover{
color: #146685;
background-color: #fff;
font-weight: 500;
}
#content .col_1_5 p{
font-family: 'Montserrat', sans-serif;
font-weight: 100;
font-size: 16px;
}
/* Spalten * * * * * * * * */
.col_1, .col_1_2, .col_1_3, .col_1_4, .col_1_5, .col_1_6, .col_1_7{
float: left;
}
.col_1{
width:455px;
margin: 105px 10px;
float: right;
}
.col_1_2{
width: 620px;
margin: 60px 10px;
}
.col_1_3{
margin: 20px 10px;
width: 368px;
position: relative;
}
.col_1_4{
margin: 60px 10px;
}
.col_1_5{
width: 555px;
margin: 40px 40px;
position: relative;
}
.col_1_6{
float: left;
margin: 20px 10px;
position: relative;
}
.col_1_7{
margin: 25px 40px;
}
/* NavBar * * * * * * * * */
.navbar{
float: right;
font-size: 18px;
font-weight: 500;
font-family: 'Montserrat', sans-serif;
}
.navbar ul{
display: inline-block;
width: 100%;
}
.navbar ul li{
display: inline-block;
position: relative;
}
.navbar ul li a{
display: inline-block;
color: #146685;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 15px;
transition: all ease 0.3s;
}
.navbar ul li a:hover{
color: #b9587a !important;
}
.navbar ul li.dropdown ul{
background-color: #fff;
color: #146685;
font-size: 16px;
font-weight: 500;
font-family: 'Montserrat', sans-serif;
position: absolute;
left: 0;
padding-left: 0;
min-width: 142px;
display: none;
z-index: 12;
}
.navbar ul li.dropdown ul li a{
color: #146685;
width: 180px;
}
.navbar ul li.dropdown:hover ul{
display: block;
}
Zuletzt bearbeitet: