I have a 100% width container that I would like to fill with 8 inputs of the same size. 100 / 8 = 12.5
The html:
<div id="container">
<input class="form" />
<input class="form" />
....
</div>
My css:
#container{
width: 100%;
background-color:red;
margin:0;
}
.form{
width:12.5%;
margin:0;
}
As you can see in this fiddle: https://jsfiddle.net/7z7e63cb/
The last input is displayed in another line. Why? and how can I fix it? Thanks