Each character should be in a different
inline element, such as
span
. Use individual CSS
class
attribute or even unique
id
attribute and learn how to use CSS:
http://en.wikipedia.org/wiki/CSS[
^],
http://www.w3.org/standards/webdesign/htmlcss#whatcss[
^],
http://www.w3schools.com/css/[
^],
http://www.mediawiki.org/wiki/Manual:CSS[
^].
In cannot be a usual input control. If you want this "individual-style" feature and editable behavior at the same time, use the attribute
contenteditable
:
http://www.w3schools.com/tags/att_global_contenteditable.asp[
^].
Please see my past answer:
How can i insert different letters with different color for each letter in textbox[
^].
[EDIT]
And, by the way: please don't re-post your question. If you did not get anything in this answer, ask some follow-up questions. As I can see, you last question has been deleted due to multiple abuse reports. It usually happens when members re-post questions and ignore existing answers. Some heavy abusers even lost their CodeProject accounts.
—SA