How to clear background-image in css.
-
Greetings.
I have following css which I apply to application:
#pushButton { border: none; background-image: url(:/icon.png); }
During runctime I want to clear icon and just set color:
#pushButton { border: none; background-color: #eeeeee; background-image: none; }
But the border still present. Even if I override the image with another one - the older is still there and I have two overlapping images.
-
Greetings.
I have following css which I apply to application:
#pushButton { border: none; background-image: url(:/icon.png); }
During runctime I want to clear icon and just set color:
#pushButton { border: none; background-color: #eeeeee; background-image: none; }
But the border still present. Even if I override the image with another one - the older is still there and I have two overlapping images.
@nikitablack Hi,
I'm not getting the same behaviour. How do yo set the stylesheet?
In my case, I'm playing with two css. The first one has the background image. The second one has no image and a background color. I set the one or another clicking in the pushbutton.