I created a <span>
and absolutely positioned it behind the relatively positioned <input>
. That seems to sort of work. The alignment isn't perfect across the browsers, but complemented by Javascript, this works as a good cross-browser solution. Working on IE6+, Chrome, Opera and FF.
Check out how it works here, if you wish! http://www.dollmode.com/test
If you're viewing this question and that page doesn't exist, it's probably now located on http://www.dollmode.com/