What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Need help with event selector

Pascal

New member
Joined
Aug 13, 2024
Messages
1
Reaction score
0
HTML Coins
0
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.
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back