NetTalk Central

Author Topic: Use my own CSS for buttons _ONLY_  (Read 9695 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Use my own CSS for buttons _ONLY_
« on: March 01, 2013, 01:02:18 AM »
Hallo,


Is there any way I can use my own CSS for buttons instead of shipped one?

Ex: I need to replace the save button css with my own one. I go in WebServer template > Buttons > select Save Button and put on Button Class the name of my own css. Compiled and run. The button will use my css but also others like : ui-button ui-widget ... etc
How can I use _only_ my own css on that button?

Thank you,
Robert

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Use my own CSS for buttons _ONLY_
« Reply #1 on: March 01, 2013, 11:08:09 PM »
Hi Robert,

The jQuery CSS, and the conversion of the button from a native OS button is done by the switch "use jquery buttons" in the same place that you set the CSS for the button. I'm assuming you want the button changed to (the concept of) a JavaScript button. If not, just tick this off.

However in CSS terms you don't need to "remove" the jQuery class. You just need to set whatever it is you want to set in your class, and that will override the existing class. So if ui-button is setting the color to red, you can set it to blue, and yours will win. And so on.

cheers
Bruce