User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040219 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040219 In a "DIV in a DIV" structure, the inner DIV is placed in the wrong place. Reproducible: Always Steps to Reproduce: Take a look at the attached page. Actual Results: The page is not rendered correctly. Expected Results: The page is rendered correctly.
text-align aligns text. It does not affect block layout.
http://www.w3.org/TR/2004/CR-CSS21-20040225/text.html#propdef-text-align Maybe I got it completely wrong, but doesn't the documentation say "Applies to any block-level elements"? Else, how to center a block?
margin-left: auto; margin-right: auto;
*** This bug has been marked as a duplicate of 22816 ***
"applies" just means that you can apply the property to any block and that it will center the text inside that block.