I need to fit font-size to input height. Input looks like this:
<input type="text" id="inputt" name="test" value="ddpp" style="height:100px; width:200px; font-size:100px; line-height:100px; font-family: 'Times New Roman'">
As you can see the height, font-size and line-height properties are equal to 100px. When I alert() these properties by jquery after page loading all values are equal to 100px. But text inside input is not fitting an input height.
I also tried to do this with a span:
<span id="spann1" style="height:100px;font-size: 100px;border: 1px solid red;font-family: 'Times New Roman'">ddpp</span>
As a result the height of span has changed to 113px and line-height became 142px. Why? Does it mean that font-size: 100px is not a 100px in reality. Then how it works?
