PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → CSS in WebDev
CSS in WebDev
Iniciado por guest, 07,jun. 2016 11:46 - No hay respuesta
Publicado el 07,junio 2016 - 11:46
Is there anyone who knows how to work with CSS in WebDev correctly? I need a simple thing - to change the icon (background-image) for a button depending on some condition. I create 2 CSS classes and set the one for a button as default (via Style) page in control properties window. Then I use the simple code:

IF SomeCondition THEN
BTN_Search..HTMLClass = "Some-CSS-Class"
END

The icon is not changed. I inspected the element and see that new CSS class is accumulated in class attribute of the button and the current value of background-image is overriden by previous CSS.