Étape 5: Le Code CSS - style de la liste principale
.menu ul / * Cacher enfant listes par défaut * / / * afficher sur survol * / / * Flottant la liste principale gauche * /
{
fond: #2E8AE6 ;
padding: 0 20px ;
liste-style : none ;
position : relative ;
afficher : inline-table ;
}
.menu ul : après
{
contenu: "" ; Clear : both ; afficher : bloquer ;
}
.menu ul ul
{
afficher : none ;
position : absolute ; dessus : 100 % ;
}
.menu ul li:hover > ul {}
afficher : bloquer ;
}
.menu ul li
{
float : left ;
border-left : 1px solid #4093E6 ;
border-right : 1px solid #246BB2 ;
}