Gert Vanwijn
Posts: 0
Joined: Wed Mar 27, 2013 1:19 pm

Color button in css

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'.

Gert Vanwijn
Posts: 0
Joined: Wed Mar 27, 2013 1:19 pm

Color button in css

ok now this works:

.FacebookLogin{
background:#000000;
}

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Color button in css

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.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

Color button in css

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;
}

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Color button in css

Hi Laura,

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

Return to “Issues”