6 Replies Latest reply on Oct 12, 2007 11:32 AM by steeves

    About CSS Style Sheet Category

    steeves
      Hi All,
      I have knowledge with css but I have a troubles with integration in Flex.

      How is possible to define a Class for specific Flex component like FormItem. In this example, I have a <mx:Form id="form1"> and I define StyleName="NDForm" where NDForm is a class in a external CSS. I would like that all of FormItem will be in Bold but not all FormItem in my Application, only FormItems under my id="form1" Form.

      Thanks to all to help me

      CODE MXML
      <mx:Form width="98%" id="form1" styleName="NDForm">
      <mx:FormItem label="My Title" width="100%">
      <mx:TextInput width="100%"/>
      </mx:FormItem> ......

      EXTERNAL CSS CLASS
      .NDForm FormItem {
      fontWeight: bold;
      }