What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Need help with event selector

Pascal

New member
Hi to all,

My smart home generates a html dashboard that can be styled with CSS. I'm an absolute beginner and was able to do many things, but the one I struggle is the following one :

This is the html code
1723544644831.png
What I want to do is to change the "material-icon he-bulb_off" picture in i. I'm able to replace the picture globally by hiding the zone and by using "after" to replace the picture. But this zone is the global zone used in any case. If the light is off you have this material-icon he-bulb_off and if it is on you have "material-icon he-bulb_on". How can I change the picture with a different one depending on the state on or off
I hope that this is clear.
 
Back
Top