Closed
Bug 62625
Opened 24 years ago
Closed 24 years ago
text-align CSS attribute ignored for javascript source
Categories
(Core :: Layout, defect, P3)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mozilla, Assigned: clayton)
References
()
Details
(Keywords: verifyme)
Attachments
(1 file)
although inside a DIV with a class of "center" which is defined to mean
"text-align: centered" a javascript-sourced block of HTML is not centered.
This affects the ad at the bottom of the page. The javascript merely does a
number of document.write commands.
This worked in earlier versions of Mozilla, and also works in Netscape 4.7x and
MSIE. Most recently it is not working in Mozilla 0.6.
Comment 1•24 years ago
|
||
See this as well in Build 2000121008 in WinNT
Have a testcase with just the ad from the bottom of the page.
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
text-align:center means that text should be centered. Not that blocks should be
centered. I think this bug is thus INVALID. No?
(The fix would probably be
div.center > * { margin-left: auto; margin-right: auto; }
...or some such. Although why they use a *table* for this is beyond me.)
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
"This property describes how inline content of a block is aligned."
http://www.w3.org/TR/REC-CSS2/text.html#alignment-prop
Is a table inside a block (div) not considered inline content from the point of
view of that block? ie, wouldn't the table itself be aligned according to the
attributes of the block it is in, even if the alignment didn't apply to elements
inside any new blocks?
Comment 5•24 years ago
|
||
Right. A table is not inline content. (There is a special value of 'display'
called 'inline-table' that we do not support; tables using that display type
_would_ be inline. But that's another story.)
Keywords: verifyme
You need to log in
before you can comment on or make changes to this bug.
Description
•