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

Home Forums CSS Remove Input File Message Reply To: Remove Input File Message


button elements cannot have type=file. The only allowed values are submit, reset, and button (and “button” doesn’t really mean anything).

Styling form inputs is really tricky. In some cases (the file input included), there simply isn’t any reliable, cross-browser way to make significant changes to default styling.

In addition, consider that people expect form inputs to look a certain way in their browser, and changing that look can cause confusion and hurt your UX.