1/* Character-based alignment in a table column */
2
3text-align: center;
4
5/* The inline contents are centered within the line box. */
1/*style-part*/
2
3.center{
4 text-align:center;
5 }
6<!--html-part-->
7
8<p class="center"> How to text align </p>
9