Doubt in web Code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Doubt in web Code

Doubt in code🥺 I want that when i click on card div the color of content div (blue one) changes to pink but am unable to do + i want the text in <p> tag gets scrolled but that too isnt working please help🥺 https://code.sololearn.com/WJCUgz51EH5v/?ref=app

16th Apr 2021, 2:47 PM
The INDIAN
The INDIAN - avatar
4 Answers
+ 5
https://code.sololearn.com/WEiaI4aW2lcu/?ref=app Full CSS Solution So there is single reason behind both of the issues And that was z-index:-1; As you set it to -1 then it is also behind the body so you can't interact with it So i just removed z-index:; or you can also make it a positive integer so that it is interactive
16th Apr 2021, 3:06 PM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar
16th Apr 2021, 3:09 PM
Harsh
Harsh - avatar
+ 5
Do you need only css solution or js would work
16th Apr 2021, 2:56 PM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar
16th Apr 2021, 3:17 PM
The INDIAN
The INDIAN - avatar