I've to align some text in the center of the page with div tag.
                
                A: 
                
                
              You could set the style of the div to be:
<div style="width: 250px; margin-left:auto; margin-right:auto;">TEXT</div>
You can also place that style in a CSS class and set the class of the div to whatever you named it.
EDIT: If you include a width for the div, it centers...
                  kchau
                   2009-11-13 07:16:07
                
              @kchau: is that really centering it ? I don't think so ...
                  RageZ
                   2009-11-13 07:19:05
                @RageZ: My CSS style is exactly like meder's... I just forgot the width.
                  kchau
                   2009-11-13 07:28:22
                
                +4 
                A: 
                
                
              
            div#foo { text-align:center; }
to align the text within the div or
div#foo { width:100px; margin:0 auto; }
to make the div 100px width and horizontally center it.
                  meder
                   2009-11-13 07:17:43