Closed
Bug 237201
Opened 20 years ago
Closed 20 years ago
text-align of a DIV doesn't align also a contained DIV
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
People
(Reporter: lapo, Unassigned)
Details
Attachments
(1 file)
946 bytes,
text/html
|
Details |
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.
Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
text-align aligns text. It does not affect block layout.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 3•20 years ago
|
||
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?
Comment 4•20 years ago
|
||
margin-left: auto; margin-right: auto;
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 5•20 years ago
|
||
*** This bug has been marked as a duplicate of 22816 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → DUPLICATE
Comment 6•20 years ago
|
||
"applies" just means that you can apply the property to any block and that it will center the text inside that block.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•