Open
Bug 237492
Opened 21 years ago
Updated 2 years ago
style="text-align: center;" not working on empty LI element
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
NEW
People
(Reporter: sspitzer, Unassigned)
Details
(Keywords: testcase)
Attachments
(3 files)
I have some HTML like this: <ul style="text-align: center;"> <li></li> </ul> <ul style="text-align: center;"> <li>x</li> </ul> mozilla does something different than IE, so I'm not sure if this is a bug or not. I'll attach a screen shot of both mozilla and IE, and some sample HTML
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Comment 2•21 years ago
|
||
Reporter | ||
Comment 3•21 years ago
|
||
Component: Layout → Layout: Block and Inline
QA Contact: core.layout → core.layout.block-and-inline
Comment 4•19 years ago
|
||
A similar problem (also posted in 293599) Test case: http://www.hyperpublish.com/firedivbug/ As you can see: <div align=center style=s2> (with s2 being additionally a text-align=center style) does not work when there is a table within the paragraph. you can see: http://www.hyperpublish.com/firedivbug/firebug_style.css DIV.s2 { font-family:"Arial"; font-size:10pt; color:#000000; margin-left:3mm; margin-right:3mm; margin-top:0mm; margin-bottom:0mm; text-indent:0mm; text-align:center; list-style-type:none; } So there are 2 things that say the paragraph (table) must be centered and you are not centering it. Same page perfectly aligns with all Opera, IE, Netscape. And <DIV align=center> is allowed since Netscape 3.0 (I know as I used it, I am on the Web since 1995 and since Mozilla and Netscape 1.0). I know that now more prolix tags are suggested, and DIV align is deprecated, but thousand pages still contains it (NS 3.0 was out around 1996) and I strongly like to optimize the software for SMALL CODE SIZE. Please fix your bug, thanx :) Aldo
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•