My input is getting larger and smaller when I resize the browser. How can I keep the font size consistent without using JavaScript? The font size should always be 100% of the input height.
Check out this example on JSFiddle.
<div class="container">
<div class="inner">
<input class="input"/>
</div>
</div>
Here's the CSS:
.container {
width: 100%;
}
.inner {
position: relative;
}
.input
{
position: absolute;
padding-bottom: 10%;
width: 100%;
}