Whats wrong with this simple code ? Plz help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
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