d-_-b
d-_-b

Reputation: 23201

Can there be multiple font-sizes within one <input>'s value

Is there a way to do something like this?

<input value="<span style='font-size:10px'>small text</span>
       <span style='font-size:20px'>BIG TEXT</span>" 
       type="text" />

This code doesn't work. But can I mimic this?

Upvotes: 4

Views: 1340

Answers (1)

saluce
saluce

Reputation: 13360

Mixing styles within a textbox is not possible with pure HTML and CSS. What you'll need to look for is a third-party control for richtextbox. Just Google your platform (PHP or ASP.NET) to find one to your liking.

Upvotes: 3

Related Questions