Normally to center text, your element either has to have a set width ( 250px for example ), or be a block-level element, such as a <DIV> or <P>. You can also use CSS to display an element as a block, then apply text-align:center; to center the text.