There are two buttons here:
http://jsfiddle.net/fintiblick/g48EL/3/
- The first
myStyle uses two custom CSS styles: mybutton and mywidth . - The second
jqueryui button has styles defined by the jQuery stylesheet user interface, and then the button is called in the JavaScript section with:
:
jQuery("#dosubmit2").button( { icons: { secondary: "ui-icon-search" }, text: false });
You will notice two problems here: Run the sample.
(1) I need the jQuery button to always be the same width and height as the same button defined using the .mybutton style. However, at startup (in Chrome), the myStyle button myStyle 73x42 , and the jqueryui button jqueryui 67x42 . >. How can I guarantee that a jQuery user interface button will always be displayed with the same dimensions as buttons using a user-style ( .mybutton )?
(2) Another important problem is that text = false specified in the jQuery user interface button definition, but the button text is displayed.
source share