Basically in your myInputs class you give padding 0, 10px. It's mean you only give 10px padding to left and right side and padding between top and bottom is zero. you need to correct your padding with 5px, 10px.