Page 1 of 1

Color button in css

Posted: Mon Apr 22, 2013 5:55 pm
by Gert Vanwijn

Hi,

why won't this code work in a new css-file for a mobile button ?

a.FacebookLogin.ui-btn-up-a.mobilebutton3{
background:#000000;
}

For a button with Class Name 'FacebookLogin'.


Color button in css

Posted: Mon Apr 22, 2013 6:13 pm
by Gert Vanwijn

ok now this works:

.FacebookLogin{
background:#000000;
}

But how do I change the hover and down color in that case ?


Color button in css

Posted: Mon Apr 22, 2013 6:33 pm
by Kateryna Grynko

Hi Gert,

To adjustment button colour when hover mouse use the following code:
code.FacebookLogin.ui-btn-hover-a{
background:#000000;
}/code
To set colour on click:
code.FacebookLogin.ui-btn-down-a{
background:#000000;
}/code
CSS classes "ui-btn-hover-a" and "ui-btn-down-a" are used for Swatch "A" only. If you change button Swatch you would need to change letter in CSS.


Color button in css

Posted: Wed Nov 06, 2013 4:48 pm
by laura6372139

Hi!

I want to set in my mobilenavbaritem, When I click on the navbaritem to change color. Now it is green I want to put #333366.

I have tried several codes.

div.mobilenavbaritem_7:active {
background-color: #333366;
}


Color button in css

Posted: Wed Nov 06, 2013 6:19 pm
by Kateryna Grynko

Hi Laura,

Try the following:pre[name="mobilenavbaritem_7"]{
background: #333366;
}/pre