I want to do exactly what was asked here:
Put icon inside input element in a form
Except that I want the icons to be right-aligned.
The "background" workaround won't work, since those images have to be clickable! So it must be an IMG.
How can I do this?
A solution without background-images:
JSFiddle.
You can use a div as a wrapper, containing an image and input field, and position the image inside there that overlay's the input field using position absolute.
HTML
CSS
FIDDLE
http://jsfiddle.net/aTvvN/1/
Just try following:
HTML:
CSS:
fiddle