kdarty
6/13/2016 - 6:03 PM

Make input value uppercase in CSS without affecting the placeholder Taken from Stackoverflow: http://stackoverflow.com/questions/25180140/ma

Make input value uppercase in CSS without affecting the placeholder Taken from Stackoverflow: http://stackoverflow.com/questions/25180140/make-input-value-uppercase-in-css-without-affecting-the-placeholder

JSBin Demo: http://jsbin.com/gubef/1/edit?html,css,output

input { 
    text-transform: uppercase;
}
::-webkit-input-placeholder { /* WebKit browsers */
    text-transform: none;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    text-transform: none;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    text-transform: none;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    text-transform: none;
}