+ 1

Can we add commands inside selectors using CSS property?

29th Sep 2018, 10:35 PM
Bold Pilot
Bold Pilot - avatar
3 Respuestas
+ 5
You can do that by only using CSS but it's a little tricky and i defintely recommend to use Javascript as stated by Ulisses. Just a simple implementation: https://code.sololearn.com/W9gxz1214xQq/?ref=app
29th Sep 2018, 11:01 PM
Maz
Maz - avatar
0
HTML CODE: <img id="image" url of image here> <p id ="h"> hello </p> --------------------------------------- CSS CODE: #image: hover { what should I write here to change value of "hello" to "world"? }
29th Sep 2018, 10:44 PM
Bold Pilot
Bold Pilot - avatar
0
To do that you need JavaScript
29th Sep 2018, 10:49 PM
Ulisses Cruz
Ulisses Cruz - avatar