2 Replies Latest reply on Oct 5, 2007 6:12 AM by Wayne_1977

    styleName for a Button - can I set width & height?

      Hi folks,

      I've declared a style in my app's css file like this:

      .styButtonSmall {
      width: 15;
      height: 35;

      And declared a button like this:

      <mx:Button id="bSave" click="doSave()" label="Save" styleName="styButtonSmall"/>

      The style seems to have no effect - I get standard size buttons. I've also tried specifying numbers like "15px" rather than 15, and also tried setting maxHeight and maxWidth in the style specification. No luck. However, if I set height and width directly on the button, they size themselves correctly.

      So my question is: How do I use a style to specify button height and width?