The fact is that position:absolute; resizes the element to fit its content, and that text-align: center; centers the text within the width of the element block. Therefore, if you add position: absolute; , do not forget to increase the width of the element, otherwise the text-align: center; property text-align: center; will be useless.
The best way to solve this is to add width: 100%; and left: 0px; in the .text section.
http://jsfiddle.net/27van/
amaurymartiny
source share