+ 5

CSS Hover

What I am missing if I want hover on the <div id=“x”>, both <p> + <h1> will turn blue? https://code.sololearn.com/WWrn4zDWA4TT/?ref=app

12th Mar 2020, 3:09 AM
JTLZ
2 odpowiedzi
+ 2
//It can be done using giving p and h1 same class and #x:hover .class{}, I also found that it's works if p and h1 get inside that x div https://code.sololearn.com/WC4Js5N4oTEV/?ref=app
12th Mar 2020, 3:55 AM
Sudarshan Rai
Sudarshan Rai - avatar
12th Mar 2020, 10:52 AM
JTLZ