How to center the cursor in a text input having a placeholder in Edge without JS?
Nice find, Tamás! This appears to be a bug with our form controls. Note that the cursor respects the instruction when there is no placeholder, but falls back to left-alignment when there is a placeholder. This seems very unintentional, and worth digging into.
Try using this. that's the fix for edge when you already have css of input field text centered
if(window.navigator.userAgent.search(/edge/ig)){
$("#inputfield").focus((e)=>{
$("#codefield").attr({placeholder: ""});
});
$("#codefield").blur((e)=>{
$("#codefield").attr({placeholder: "Your Placeholder"});
});
}