Nieuw lid |
|
zoals jullie waarschijnlijk weten kan je niet zomaar een dropdownmenu maken in IE mbv CSS nou wil ik dat wel doen en heb ik ook een gemaakt die wel werkt in Chrome maar niet in IE. Hoe krijg ik het nu wel werkend?
ik heb zeg maar de bel horen luiden maar weet niet waar de klepel hangt, mijn css:
/*navigation menu */
#nav {
padding: 60px 0 0 0;
margin: 0;
list-style: none;
float: right;
}
#nav ul {
padding: 0px 0 0 0; //lijntje tussen hoofd en submenu
margin: 0 0 0 0;
list-style: none;
float: right;
}
#nav li {
float: left;
width: 150px;
text-align: center;
}
#nav ul {
position: absolute;
width: 120px;
left: -1000px;
}
#nav li:hover ul, #nav li.ie_does_hover ul {
left: auto;
background-position: 0 0;
}
#nav a {
display: block;
height: 24px;
margin: 0px 1px 0px 0px;
padding-top: 5px;
text-decoration: none;
font-family: Calibri, Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
}
ul a:link, ul a:visited {
color: #1F1F1F;
background-image: url("img/menu_bg.png");
}
ul a:hover {
color: #1F1F1F;
background-image: url("img/hover_menu_bg.png");
}
ul ul li a:link, ul ul li a:visited {
border-left: 1px solid #1F1F1F;
border-bottom: 1px solid #1F1F1F;
border-right: 1px solid #1F1F1F;
background-image: url("img/sub_menu_bg.png");
opacity:0.95;
}
ul ul li a:hover {
border-left: 1px solid #1F1F1F;
border-bottom: 1px solid #1F1F1F;
border-right: 1px solid #1F1F1F;
background-image: url("img/sub_menu_bg.png");
opacity:1;
}
ul ul a:link, ul ul a:visited{
font-weight: normal;
color: #CCC;
}
ul ul a:hover, ul ul a:active{
font-weight: normal;
color: #FFF;
}
ul li{
//background-image: url("img/menu_bg.png");
//border-right: 1px solid #1F1F1F;
}
ul ul li{
}
#nav li:hover ul, #nav li.ie_does_hover ul {
left: auto;
background-position: 0 0;
}
/* IE only hack \*/
* html ul li, * html ul ul li{
border-bottom: 3px solid #FFF;
}
* html ul ul li{
border-top: 0;
}
/* Einde IE only hack */
/*navigation menu */ #nav { padding: 60px 0 0 0; margin: 0; list-style: none; float: right; } #nav ul { padding: 0px 0 0 0; //lijntje tussen hoofd en submenu margin: 0 0 0 0; list-style: none; float: right; } #nav li { float: left; width: 150px; text-align: center; } #nav ul { position: absolute; width: 120px; left: -1000px; } #nav li:hover ul, #nav li.ie_does_hover ul { left: auto; background-position: 0 0; } #nav a { display: block; height: 24px; margin: 0px 1px 0px 0px; padding-top: 5px; text-decoration: none; font-family: Calibri, Verdana, Arial, Helvetica, sans-serif; font-size: 16px; } ul a:link, ul a:visited { color: #1F1F1F; background-image: url("img/menu_bg.png"); } ul a:hover { color: #1F1F1F; background-image: url("img/hover_menu_bg.png"); } ul ul li a:link, ul ul li a:visited { border-left: 1px solid #1F1F1F; border-bottom: 1px solid #1F1F1F; border-right: 1px solid #1F1F1F; background-image: url("img/sub_menu_bg.png"); opacity:0.95; } ul ul li a:hover { border-left: 1px solid #1F1F1F; border-bottom: 1px solid #1F1F1F; border-right: 1px solid #1F1F1F; background-image: url("img/sub_menu_bg.png"); opacity:1; } ul ul a:link, ul ul a:visited{ font-weight: normal; color: #CCC; } ul ul a:hover, ul ul a:active{ font-weight: normal; color: #FFF; } ul li{ //background-image: url("img/menu_bg.png"); //border-right: 1px solid #1F1F1F; } ul ul li{ } #nav li:hover ul, #nav li.ie_does_hover ul { left: auto; background-position: 0 0; } /* IE only hack \*/ * html ul li, * html ul ul li{ border-bottom: 3px solid #FFF; } * html ul ul li{ border-top: 0; } /* Einde IE only hack */
alvast bedankt!
|