Thanks Igor, just wanted to say the code works fine. I had it running from the wrong service.
One more thing how do you change the color of a button using CSS?
Thanks Igor, just wanted to say the code works fine. I had it running from the wrong service.
One more thing how do you change the color of a button using CSS?
Hi Adako,
We are glad that you got what you want.
To change button background (if we understood you right) with CSS you have to:
ol
liNavigate to the design tab of the page. And select the button./li
li In properties set "Class name" with value "yourButtonClassName". http://prntscr.com/3b1ph1/direct/li
liCreate CSS asset./li
li Add to this js asset following CSS:/li
precode
/* rule for default state */
html .ui-content .ui-btn.yourButtonClassName{
background-color: #f00;
background-image: initial;
}
/* rule for hover state */
html .ui-content .ui-btn.yourButtonClassName:hover{
background-color: #f0f;
background-image: initial;
}
/* rule for active state */
html .ui-content .ui-btn.yourButtonClassName:active{
background-color: #ff0;
background-image: initial;
}/code/pre
That's all.
After you run your app, you will get the same: http://prntscr.com/3b1syx/direct
Regards./ol