I have 3 elements inline, first is span with image and defined with using padding left and right, I don't want to resize her width, just only like now width padding left and right.
My problem is on different resolution to fit this 3 inline element to be fit to container full 100% width.
How to set resizable width for INPUT on different resolution.
On small resolution I may to write new smaller width for INPUT tag.
Is it possible to set resizable input tag.
I want three elements to be 100% width in container of 90%, without resizing span elements, only INPUT.
I tried for this set width:78% of input tag, but thats it for large resolution, how to set for all resolution?
Is it posible to do using only HTML and CSS??
https://jsfiddle.net/4654eaue/4/
HTML
<div class="container">
<span><img src="http://science.psu.edu/alert/icons/video-iconSmall.png"></span><input type="text" name="fname" value="John Doe" disabled class="profileusername bordertop"><span><img src="http://science.psu.edu/alert/icons/video-iconSmall.png"></span>
</div>
CSS
.container{
width:90%;
}
input{
width:78%;
vertical-align:top;
display:inline-block;
height:23px;
}
span img{
vertical-align:middle;
padding-right:10px;
padding-left:10px;
}
span{
vertical-align:top;
display:inline-block;
background-color:grey;
}