1
Hi, I have the following CSS
.control-label{
width: 100px;
text-align: center;
}
.input-mini {
width: 85px;
}
And the following form structure
<div class="control-group">
<div class="controls" style="float:left; margin-left: 5px;">
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">Base</div>
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">P. Moto</div>
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">P. Carro</div>
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">P. Van</div>
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">P. Caminhão</div>
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">R. Moto</div>
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">R. Carro</div>
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">R. Van</div>
<div id="textinput" class="control-label" style="float:left; margin-left: 5px;">R. Caminhão</div>
</div>
</div>
<div class="control-group">
<div class="controls" style="float:left; margin-left: 5px;">
<div class="input-mini" style="float:left; margin-left: 5px;">
<strong>BAIRRO</strong>
</div>
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
<input id="textinput" name="textinput" type="text" placeholder="0.00" class="input-mini" style="float:left; margin-left: 5px;">
</div>
</div>
But when it comes to visualizing, the headlines get misaligned... that way:
Addendum
Remembering that I will make a foreach () in the second div, to repeat the fields according to the neighborhoods...
Puts the bonds inside a
<label> Títulos </label>
.– Diego Souza
I put them all inside a label... And I put as float:left.. but everything was together with each other..
– Sr. André Baill
As much as the width of inputs and Abels are 85, it should fit, but did not give no....
– Sr. André Baill
Put in a Jsfiddle for us.
– Diego Souza
https://jsfiddle.net/thje3g52/
– Sr. André Baill