4 Replies Latest reply on Nov 11, 2009 2:09 AM by Subeesh Arakkan

    Alignment in AlertBox

    J_hari

      I want to give the content in an alertbox as center aligned and the title of the same as left aligned.... and for the same the code given by me is as follows, but it doesn't work... every thing (title+content) is center aligned... Please help me....


      <mx:Style>
          Alert
          {
              text-align:center;
              title-alignment:left;
              background-color:#EEEEEE;
              color:#000000;  /* Font Colour */
          }
      </mx:Style>

       

      I tried giving  "title-alignment:left;" on top of "text-align:center;". But even then it didn't work...

       

      Thanks in advance...

        • 1. Re: Alignment in AlertBox
          Subeesh Arakkan Level 4

          Hi,

           

          Try this

           

                      Alert
                      {
                          text-align:center;
                          background-color:#EEEEEE;
                          color:#000000;  /* Font Colour */
                          title-style-name: myTitleStyle;
                      }
                      .myTitleStyle
                      {
                          text-align:left;
                      }

          • 2. Re: Alignment in AlertBox
            J_hari Level 1

            Thanks... It worked... Also I want the title to be bold... i tried this, even then it is not bold...

             

              Alert
                {
                    text-align:center;
                    background-color:#EEEEEE;
                    color:#000000;  /* Font Colour */
                    title-style-name:myTitleStyle;
                }
                .myTitleStyle
                {
                    font-style:bold;
                    font-size:14;
                    color:#000000; 
                    text-align:left;
                }

            • 3. Re: Alignment in AlertBox
              Subeesh Arakkan Level 4

              Hi,

               

              Set

              font-weight:bold;
              

              instead of

              font-style:bold;
              
              1 person found this helpful
              • 4. Re: Alignment in AlertBox
                J_hari Level 1

                K... Thank you very much... it worked...