How to center the cursor in a text input having a placeholder in Edge without JS?

Tamás Bolvári picture Tamás Bolvári · Oct 18, 2015 · Viewed 12.9k times · Source

It works in every browser except Edge. Is there a pure CSS workaround?

Answer

Sampson picture Sampson · Oct 20, 2015

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.