Whats wrong with this simple code ? Plz help me | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

Whats wrong with this simple code ? Plz help me

ul li a { display:block; } ul li a:hover{ background-color:green; } ul li ul li { display:none; } ul li:hover ul li { display:block ; } with this code im not getting navigation bars👉 submenu hidden under main menu. 👈 plz help or tell me different method for creating nav bar with hover effect .

25th Sep 2017, 12:49 PM
Jalal Shaikh
Jalal Shaikh - avatar
1 Antwort
0
try this: ul li a:hover{ background-color:green; } ul li ul li { display:none; } ul li:hover ul li ul li{ display:block ; } hope it works! :)
28th Sep 2017, 9:48 PM
kj loosman
kj loosman - avatar