How to make a hover to show content and unhide after | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make a hover to show content and unhide after

Show content when hover and hide content whrlen user click on my page

25th Aug 2020, 8:21 PM
Vishnu
Vishnu - avatar
3 Answers
+ 2
Html: <p id = "hello"><br><br><br> Hello </p> Css: #hello { position: absolute; top: 10%; left: 10%; height: 80%; width: 80%; text-align: center; font-size: 30px; background: red; } #hello:hover { background: blue; color: white; }
26th Aug 2020, 4:14 AM
Namit Jain
Namit Jain - avatar
+ 1
Vishnu What is not?
26th Aug 2020, 9:33 AM
Namit Jain
Namit Jain - avatar
0
Thank you
17th Oct 2020, 3:25 AM
Vishnu
Vishnu - avatar