on re-size browser my input is growing and decreases. How to change same font size? it is possible without js? font-size should be 100% input height.
http://jsfiddle.net/krLf0cbc/7/
<div class="container">
<div class="inner">
<input class="input"/>
</div>
</div>
and css
.container {
width: 100%;
}
.inner {
position: relative;
}
.input
{
position: absolute;
padding-bottom: 10%;
width:100%;
}
You're looking for viewport lengths - vw, vh
so change to
and it will change with the width, same goes for
http://dev.w3.org/csswg/css-values/#viewport-relative-lengths
To be safe though, i'd still include a fallback