Hepl css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hepl css

I have a light green html menu and I want to know how to make it with css so that when I press one of the menus it stays in dark green.

19th Sep 2020, 5:56 AM
123456
123456 - avatar
5 Answers
+ 6
Post your code please with code i we cannot fix .
19th Sep 2020, 6:04 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
#menu:hover { background:darkgreen; } where menu is id of tag u want to change color. Try this
19th Sep 2020, 6:09 AM
Divya Mohan
Divya Mohan - avatar
+ 1
That's only for when I pass the mouse over the menu, what I want is that when I click on a certain menu it will be dark green while the rest is light green.
19th Sep 2020, 6:14 AM
123456
123456 - avatar
+ 1
Save your code and post its link.
19th Sep 2020, 6:15 AM
Divya Mohan
Divya Mohan - avatar
+ 1
Or apply hover effect on each item of your menu instead of menu
19th Sep 2020, 6:17 AM
Divya Mohan
Divya Mohan - avatar