Last modified: 2012-09-18 11:26:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42324, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40324 - Align=center transformation broken for divs
Align=center transformation broken for divs
Status: RESOLVED DUPLICATE of bug 40306
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-18 09:54 UTC by Michael M.
Modified: 2012-09-18 11:26 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael M. 2012-09-18 09:54:22 UTC
<div align="center">
foo - bar - baz
</div>

should center its content, but becomes

<div style="margin-left: auto; margin-right: auto;">
<p>foo - bar - baz</p>
</div>

which shows the content left aligned. It should become

<div style="margin-left: auto; margin-right: auto; text-align:center;">
<p>foo - bar - baz</p>
</div>

instead, this displays correctly.

For a real world example look at the first box on de.wikipedia's main page ...
Comment 1 Derk-Jan Hartman 2012-09-18 11:26:32 UTC

*** This bug has been marked as a duplicate of bug 40306 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links