Last modified: 2014-02-22 02:24:01 UTC
(I'm sorry if this is not formulated very precisely.) As a temporary workaround to Bug 28573 i added this to Print.css in he.wp: div.center { text-align: center; } This works, but only if the "justify paragraphs" option is disabled in the preferences. If it is enabled, the image is still aligned to the right, because the justify paragraphs takes over the definition in Print.css. This is the default, so it probably doesn't affect most users, but still should be fixed. There's also another possibility - that i should have added something else to Print.css.
I'm unclear on what you want changed. The justify preference just adds the rule: #article, #bodyContent, #mw_content { text-align: justify; } So it shouldn't override your rule. Related justify bugs - bug 20184
Maybe it shouldn't, but it seems to override it. Here's a test page: regular: http://he.wikipedia.org/wiki/User:Amire80/test_centered_image printable: http://he.wikipedia.org/wiki/User:Amire80/test_centered_image&printable=yes Notice the content of http://he.wikipedia.org/wiki/MediaWiki:Print.css
The image is not centered in printable version for me - with or without justify paragraphs option on
Amir: thoughts on removing the user preference altogether (bug 52810)?
The preference was just recently removed (bug 52810), I guess that makes this a WONTFIX.