Closed
Bug 111961
Opened 23 years ago
Closed 23 years ago
inner table is not cented when <TD> CSS text-align: center
Categories
(Core :: Layout: Tables, defect)
Tracking
()
People
(Reporter: sagu, Assigned: karnaze)
References
()
Details
Attachments
(1 file)
318 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6+)
Gecko/20011125
BuildID: 2001112508
Table's <TD> has CSS class which text-align defines as center
When <TD> contens is other table, table is not centered while
text contens is centered
Reproducible: Always
Steps to Reproduce:
1.launch mozilla
2.open URL http://www.vtex.lt/sagu/tat.html
3.
Actual Results: inner table is left aligned(not centered)
Expected Results: inner table MUST be centered
test file:
<html>
<head>
<style type="text/css">
.ca {text-align: center;}
</style>
</head>
<body>
<table width="30%" border=1>
<tr><td class="ca"><table border=1><tr><td>inner table is not centered</table>
<tr><td class="ca">while text is centered
</table>
</body>
</html>
Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
text-align isn't meant to center tables, so you have wrong expectations ;)
DUP of (INVALID) bug #49274.
Comment 3•23 years ago
|
||
Indeed. text-align does not, should not, and will not center blocks, which is
what tables are. Use "margin-left: auto; margin-right: auto" on the table.
(bug 49274 has the details).
*** This bug has been marked as a duplicate of 49274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 4•23 years ago
|
||
verified that this is a dupe of Bug # 49274 and its invalid
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•