Hi all - trying to center some text in a wrapper of width 900px .name { position: absolute; top: 10px; width: 900px; margin: 0 auto; padding-left: 0px; font-family: impact; font-size: 2.5em; font-weight: bold; color: #DD6E05; } Code (markup): Not working - any ideas please?
I suppose you were wondering why this part didn't work: width: 900px; margin: 0 auto; Code (markup): The answer is, because you absolutely positioned it. Give that thing a border, and you will see, if its container is wider than 900px, the header itself isn't centered, but the text inside it is.