I am using the following style attribute to set the user input to uppercase so that when the user starts typing in the text box for example railway, then it should
The issue with CSS Styling is that it's not changing the data, and if you don't want to have a JS function then try...
on it's own you'll see the field capitalise on keyup, so it might be desirable to combine this with the style='text-transform:uppercase' others have suggested.