Lid |
|
Beste,
ik ben bezig met een mega drop down menu. Het werkt perfect alleen wanneer ik nu een lijst in mijn DIV wil zetten, neemt hij de opmaak over van de vorige UL (de hoofdcategorieën dus) en dat wil ik niet. Ze moeten de normale lijst opmaak hebben. Ik heb geprobeerd de opmaak weg te halen maar dit blijft toch nog vrij lastig.
Kan iemand mij adviseren hoe ik dit moet aanpakken? ik wil dus dat de UL en LI in mijn DIV (mega products) niet de opmaak van de vorig gedeclareerde CSS krijgt.
Mijn css code:
/* navigatie */
#navigatie {
width:1024px;
height:35px;
position:relative;
}
#navigatie ul {
list-style:none;
}
#navigatie li {
display:inline-block;
height:40px;
float:left;
padding-left:12px;
padding-right:12px;
padding-top:8px;
text-align:center;
margin-left:1px;
border-left:1px solid #d80282;
border-right:1px solid #d80282;
border-top:1px solid #fc43b2;
margin-top:25px;
border-top-left-radius:6px;
border-top-right-radius:6px;
-moz-border-radius-topleft:6px;
-moz-border-radius-topright:6px;
-webkit-border-top-left-radius:6px;
-webkit-border-top-right-radius:6px;
}
#navigatie li em {
color:#FFF;
font-size:10px;
}
#navigatie li a {
color:#fff;
text-decoration:none;
}
#navigatie .mega-diensten {
height:220px;
width:1004px;
position:absolute;
left:-9999px;
top:77px;
margin-top:5px;
min-height:100px;
padding:10px;
background:#d80282;
}
#navigatie li:hover .mega-diensten {
left:0px;
}
/* mega products */
#navigatie li:hover .mega-diensten #md-left {
width:250px;
height:220px;
float:left;
margin-right:15px;
background:#03F;
}
#navigatie li:hover .mega-diensten #md-right {
width:250px;
height:220px;
float:left;
margin-right:15px;
background:#99CC00;
}
#navigatie li:hover .mega-diensten #md-samples {
width:450px;
height:220px;
float:right;
}
#text-container {
width:1024px;
height:35px;
margin:50px auto;
}
/* navigatie */ #navigatie { width:1024px; height:35px; position:relative; } #navigatie ul { list-style:none; } #navigatie li { display:inline-block; height:40px; float:left; padding-left:12px; padding-right:12px; padding-top:8px; text-align:center; margin-left:1px; border-left:1px solid #d80282; border-right:1px solid #d80282; border-top:1px solid #fc43b2; margin-top:25px; border-top-left-radius:6px; border-top-right-radius:6px; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; -webkit-border-top-left-radius:6px; -webkit-border-top-right-radius:6px; } #navigatie li em { color:#FFF; font-size:10px; } #navigatie li a { color:#fff; text-decoration:none; } #navigatie .mega-diensten { height:220px; width:1004px; position:absolute; left:-9999px; top:77px; margin-top:5px; min-height:100px; padding:10px; background:#d80282; } #navigatie li:hover .mega-diensten { left:0px; } /* mega products */ #navigatie li:hover .mega-diensten #md-left { width:250px; height:220px; float:left; margin-right:15px; background:#03F; } #navigatie li:hover .mega-diensten #md-right { width:250px; height:220px; float:left; margin-right:15px; background:#99CC00; } #navigatie li:hover .mega-diensten #md-samples { width:450px; height:220px; float:right; } #text-container { width:1024px; height:35px; margin:50px auto; }
|