Closed Bug 79932 Opened 24 years ago Closed 24 years ago

Text-align CSS1 Property

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 49274

People

(Reporter: swilliams, Assigned: pierre)

Details

I am not sure weather this is a bug or not but I can't find out any more info. When I have a table in side a cell I want to set the outer cell with the tex- align: center tag so the table inside it will site centered. THis is not happening at all and is always positioned to the left. I have even tried using div tags surrounding the table and also <p> tags but nothing works. The only way I seem to be able to do it is place either <center> or <div align="center"> around the table but I want to use a css tag.. Is this a bug or is it just not standard. I can't find anything out weather tables in a cell can be align using text-align...
marking this INVALID text-align property applies to block-level elements and affects their inline content. Tables are not inline content. Tables are block elements. So they are not affected by this. In order to center a block-level element with CSS, apply "margin-left: auto; margin-right: auto;" to it. for example: table, caption { margin-left: auto; margin-right: auto; }
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
VERIFIED
Status: RESOLVED → VERIFIED
Reopening to mark dup of another invalid bug for recordkeeping.
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 49274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago24 years ago
Component: Style System → Layout
Resolution: --- → DUPLICATE
v.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.