I have difficulty setting controls, like: I have a TextArea and would like to put a label next to it, next to the bottom right and below the label, a SELECT control.
Well I've got it, but like that, giving top and left with numeric values, which I do not like much because of browser inconsistencies. Is there a more practical, more reliable way of positioning yourself without having to be numerically setting the control?
I've placed an image and this image is slightly below the label, so I have a space between them. See the full code below.
<form class="form-horizontal" role="form">
<div class="form-group">
<label for="lblCnpj" class="col-md-2 control-label">CNPJ:</label>
<div class="col-md-4">
<input type="text" class="form-control" id="txtCnpj" placeholder="Digite o Cnpj">
</div>
<label for="lblStatus" class="col-md-2 control-label">Status:</label>
<div class="col-md-4">
<img src="~/Images/Certo.png" class="col-md-2 control-label"/>
</div>
</div>
<div class="form-group">
<label for="lblRazao" class="col-md-2 control-label">Razão Social:</label>
<div class="col-md-6">
<input type="text" class="form-control" id="txtRazaoSocial" placeholder="Digite a razão social">
</div>
</div>
<div class="form-group">
<label for="lblIdEvento" class="col-md-2 control-label">ID Evento:</label>
<div class="col-md-2">
<input type="text" class="form-control" id="txtIdEvento" placeholder="Digite um evento">
</div>
</div>
</form>