display:-moz-inline-box + text-align = bug

Text inside a display:-moz-inline-block element cannot be aligned. Not only that, it doesn't do word wrapping.

Test page Workaround is not included
Reported by: Jordi Pujalte.

(Orphaned), Mozilla | Reported on 1 July 2005.

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by Marek Snopkowski on 10 October 2006 | Permalink

Maybe someone will find it usefull.

Partial solution is to use direction (with ltr == left or rtl == right) - solves only left and right alignment, but .. it's always something :)

2 Posted by Richard Johnson on 5 March 2008 | Permalink

I had a hard time understanding the previous comment, until I realized that it wasn't a Mozilla extension, rather just a regular CSS direction. So, for all of you that are confused, here is the fix:

display: -moz-inline-box;
direction: rtl;

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes