Added the same width of the original input.
Changed the display method to avoid inline-block problems.