1 Reply Latest reply on Oct 22, 2009 5:58 AM by Subeesh Arakkan

    Is it possible to change the colour of the verticalGap on a Grid Layout?

    jcahill23 Level 1

      Hi. I used a grid layout and want to make black vertical columns in between each column...is it possible to change the style of the verticalGap?

      Thx.

        • 1. Re: Is it possible to change the colour of the verticalGap on a Grid Layout?
          Subeesh Arakkan Level 4

          Set the grid background color black and set the GridItem background color something else.

           

          Here is an example.it is better to set this kind style attributes in css

          <mx:Grid backgroundColor="#000000" verticalGap="0">
             <mx:GridRow>
              <mx:GridItem backgroundColor="#FFFFFF">
               <mx:Label text="Testt"/>
              </mx:GridItem>
              <mx:GridItem backgroundColor="#FFFFFF">
               <mx:Label text="Testt"/>
              </mx:GridItem>
              <mx:GridItem backgroundColor="#FFFFFF">
               <mx:Label text="Testt"/>
              </mx:GridItem>
             </mx:GridRow>
             <mx:GridRow>
              <mx:GridItem backgroundColor="#FFFFFF">
               <mx:Label text="Testt"/>
              </mx:GridItem>
              <mx:GridItem backgroundColor="#FFFFFF">
               <mx:Label text="Testt"/>
              </mx:GridItem>
              <mx:GridItem backgroundColor="#FFFFFF">
               <mx:Label text="Testt"/>
              </mx:GridItem>
             </mx:GridRow>
            </mx:Grid>