Jquery to center: Form with multiple hidden divs -- JS will size to the smallest div....

This isn’t rails-related, but for centering/laying out things neatly, I’d suggest using something like Bootstrap and its grid system.