Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3255

Button background color using CSS

$
0
0

Hi,

 

I'm trying to change the background color of a button when it is enabled.  I've created a custom file "test.css" and set it in the Custom CSS property of the application.

 

My script as follows:

BUTTON_1.setEnabled(true);

BUTTON_1.setCSSClass("buttonenabled");

 

test.css:

.buttonenabled

{

  background-color:green;

  background:green;

  color:black;

}

 

The text color is changed to black but the button background is still silver (default color).  Does anyone know whether there is a way to overwrite the default background color?

 

Thanks,

Jianyun


Viewing all articles
Browse latest Browse all 3255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>