2 Replies Latest reply on Jul 5, 2006 10:59 AM by Flex harUI

    Button Width Via CSS?

    Level 7
      Hi -

      I tried setting a button <mx:Button> width via CSS but the "width" tag does
      not effect the button.

      Rich


        • 1. Re: Button Width Via CSS?
          Level 7
          "width" is not a style. It is a property, so you can't set it via CSS.

          Depending on where your Button is located and why you want to use a
          style, you could set the "left" and "right" constraints, which will
          indirectly set the width based on the size of the Button's container.

          -- Greg
          -- Adobe Flex Builder Team


          Richard Morey wrote:
          > Hi -
          >
          > I tried setting a button <mx:Button> width via CSS but the "width" tag does
          > not effect the button.
          >
          > Rich
          • 2. Re: Button Width Via CSS?
            Flex harUI Adobe Employee
            width/height are not CSS styles in Flex (yet). You might be able to use left/right styles to constrain the button's width