<\/script>')

Can there be several font sizes within the same <input> 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 does not work. But can I imitate this?

+4
source share
1 answer

Mixing styles inside a textbox not possible using pure HTML and CSS. What you will need to look for is a third-party control for richtextbox . Just google your platform ( PHP or ASP.NET ) to find it to your liking.

+3
source

All Articles