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)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 22816

People

(Reporter: lapo, Unassigned)

Details

Attachments

(1 file)

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.
Attached file testcase
text-align aligns text.  It does not affect block layout.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
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;
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---

*** This bug has been marked as a duplicate of 22816 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → DUPLICATE
"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.

Attachment

General

Creator:
Created:
Updated:
Size: