Closed
Bug 186265
Opened 23 years ago
Closed 23 years ago
css, text-align:center, div, table is not centered
Categories
(Core :: Layout: Floats, defect)
Tracking
()
People
(Reporter: walter.schmidt, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021130
Tables in css are not centered.
Consider something like this:
<div style="text-align:center;width:100%;border:1px solid red;">
Some centered text.
<table border="1">
<tr><td>Table, not in Mozilla, but in MS-IE centered</td></tr>
</table>
</div>
The text is centered, the table isn't.
If i use <div align="center"> then <table> is also centered.
MS-IE centers it all variants.
BTW, i use
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Thanks
Walter Schmidt
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Expected Results:
I hope this is not a misconception of css on my part.
Comment 1•23 years ago
|
||
It's an MSIE bug.
*** This bug has been marked as a duplicate of 49274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•