Hi,
Im Moment habe ich ein kleines Problem. Meine Seite funktioniert in GoogleChrome problemlos, jedoch klappen die Dropdowns nicht herunter. Auch nach langer Suche bin ich nicht darauf gekommen, was das Problem ist. Ich hoffe einer von euch kann mir Weiterhelfen!
Danke im Voraus!
Das ist das Script:
body{
margin: 7.2% auto;
padding:0px;
width:1126px;
}
#main{
background:gold;
height:1200px;
width:1126px;
}
.box1{
background:gainsboro;
height:250px;
width:100%;
}
/* CSS für das Menü */
.menu_container {
margin: 0 auto 26px auto;
position: relative;
width: 1126px;
height: 20px;
z-index: 100;
}
.menu, .menu ul {
padding: 0;
margin: 0;
list-style: none;
position: absolute;
}
.menu ul {
left: -9999px;
width: 125px;
padding: 0 20px 20px 20px;
}
.menu ul ul {
padding: 20px 20px 20px 0;
}
.menu a {
display: block;
width: 124px;
padding-left: 0px;
text-align: center;
font: normal bold 14px/40px arial, sans-serif;
color: #fff;
text-decoration: none;
margin: 0 -1px -1px 0;
background-color: #283daf;
color: white;
border-right: 1px solid grey;
border-left: 1px solid grey;
}
.menu li ul a {
font-weight: bold;
height:29px;
padding-top 0px;
border-bottom: 1px solid grey;
border-top: 1px solid grey;
border-right: 1px solid grey;
border-left: 1px solid grey;
background-color: white;
color: grey;
}
.menu li {
float: left;
border-right:1px
}
.menu li a {
}
.menu li:hover {
position: relative;
z-index: 100;
}
.menu li:hover > a {
background-color: #000080;
color: white;
}
.menu li:hover > ul {
top: 40px;
left: -20px;
z-index: -1;
}
.menu li:hover li:hover > a {
background-color:#e4e4e4;
color: #000080;
border: 2px solid grey;
}
.menu li:hover li:hover > ul {
left: 145px;
top: -20px;
z-index: 100;
}
.menu li.right:hover li:hover > ul {
left: -165px;
top: -20px;
z-index: 100;
padding: 20px 0 20px 20px;
}
.box3{
background:silver;
float:left;
padding:0px;
width:19%;
height:975px;
margin:5px;
}
.box4{
background:darkgray;
float:left;
margin:5px;
padding:0px;
}
Im Moment habe ich ein kleines Problem. Meine Seite funktioniert in GoogleChrome problemlos, jedoch klappen die Dropdowns nicht herunter. Auch nach langer Suche bin ich nicht darauf gekommen, was das Problem ist. Ich hoffe einer von euch kann mir Weiterhelfen!
Danke im Voraus!
Das ist das Script:
body{
margin: 7.2% auto;
padding:0px;
width:1126px;
}
#main{
background:gold;
height:1200px;
width:1126px;
}
.box1{
background:gainsboro;
height:250px;
width:100%;
}
/* CSS für das Menü */
.menu_container {
margin: 0 auto 26px auto;
position: relative;
width: 1126px;
height: 20px;
z-index: 100;
}
.menu, .menu ul {
padding: 0;
margin: 0;
list-style: none;
position: absolute;
}
.menu ul {
left: -9999px;
width: 125px;
padding: 0 20px 20px 20px;
}
.menu ul ul {
padding: 20px 20px 20px 0;
}
.menu a {
display: block;
width: 124px;
padding-left: 0px;
text-align: center;
font: normal bold 14px/40px arial, sans-serif;
color: #fff;
text-decoration: none;
margin: 0 -1px -1px 0;
background-color: #283daf;
color: white;
border-right: 1px solid grey;
border-left: 1px solid grey;
}
.menu li ul a {
font-weight: bold;
height:29px;
padding-top 0px;
border-bottom: 1px solid grey;
border-top: 1px solid grey;
border-right: 1px solid grey;
border-left: 1px solid grey;
background-color: white;
color: grey;
}
.menu li {
float: left;
border-right:1px
}
.menu li a {
}
.menu li:hover {
position: relative;
z-index: 100;
}
.menu li:hover > a {
background-color: #000080;
color: white;
}
.menu li:hover > ul {
top: 40px;
left: -20px;
z-index: -1;
}
.menu li:hover li:hover > a {
background-color:#e4e4e4;
color: #000080;
border: 2px solid grey;
}
.menu li:hover li:hover > ul {
left: 145px;
top: -20px;
z-index: 100;
}
.menu li.right:hover li:hover > ul {
left: -165px;
top: -20px;
z-index: 100;
padding: 20px 0 20px 20px;
}
.box3{
background:silver;
float:left;
padding:0px;
width:19%;
height:975px;
margin:5px;
}
.box4{
background:darkgray;
float:left;
margin:5px;
padding:0px;
}