The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Make Input File In Center Reply To: Make Input File In Center


Try this:

input[type=file] {
    margin: 0 auto;

However, be aware that file input fields look very different in various browsers and OS’s, and are impossible to style (you’ll need some workarounds like a jQuery plugin).