0 Replies Latest reply on Apr 22, 2010 2:12 AM by fagagou

    How to put a background image to Accordion headers ?

    fagagou

      Hy

       

      i would like to add a background image to all headers of my Accordion, my code doesn't work and i don't know why, can you check it please :

       

      Accordion {
      headerStyleName
      : "myaccordionHeader";
      headerHeight
      : 20;
      }

      .myaccordionHeader {
      color
      : blue;
      background
      -image:"/asset/img/background.png";
      height
      :20pt;
      }



      <mx:Accordion id="accordion" bottom="0" width="100%" openDuration="50" >
      <!-- Define each panel using a VBox container. -->
      <mx:VBox label="Accordion Button for Panel 1">
      <mx:Text htmlText="xx" />
      </mx:VBox>

      <mx:VBox label="Accordion Button for Panel 2">
      <mx:Text htmlText="xx" /
      >
      </mx:VBox>

      <mx:VBox label="Accordion Button for Panel 3">
      <mx:Text htmlText="xx" /
      >
      </mx:VBox>
      </
      mx:Accordion>