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 is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.




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;