I'm converting a Bootstrap 2.3 layout to Bootstrap 3 and I'm currently stuck with getting a div
centered, while keeping its width automatically as wide as it's contents.
EDIT: an answer below fixed the issue with Firefox, so updated the question to reflect the main problem.
The login form as rendered with Bootstrap 2.3 - content is centered and .border
and .well
are only as wide as the content requires:
Now a try with Bootstrap 3: http://jsfiddle.net/yq9Ww/13/
Evidently something is forcing the .well
too wide, but for the love of god, I can't figure out how to collapse the width of .well
to contents.
Can anybody shed light on how to accomplish the same result as with BS 2.3?
PS. I can't fix the width of the .border
because the same layout is used for much wider content too and that has to fit also.