How to clear background-image in css.
-
wrote on 18 May 2015, 12:18 last edited by nikitablack
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.
wrote on 19 May 2015, 12:12 last edited by@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.
1/2