0
Does anyone know how to leave the form caption below within the border line ? That is, I would like the legend to be within the outline line of the form.
<legend>Filtro por data</legend>
<div class="row second-group">
<div class="col-md-3">
<div class="form-group">
<label>Conta Corrente </label>
<dx-select-box placeholder="Selecione Conta..." [items]="contasCorrente" displayExpr="descricao" valueExpr="id" [searchEnabled]="true" formControlName="contaCorrenteId">
</dx-select-box>
<span class="text-danger" *ngIf="displayMessage.contaCorrenteId">
<p [innerHTML]="displayMessage.contaCorrenteId"></p>
</span>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label class="control-label" for="dataEmissaoInicial">Data Emissão Inicial</label>
<dx-date-box type="date" width="100%" displayFormat="dd/MM/yyyy" formControlName="dataEmissaoInicial" (onValueChanged)="definirValor($event)"></dx-date-box>
<span class="text-danger" *ngIf="displayMessage.dataEmissaoInicial">
<p [innerHTML]="displayMessage.dataEmissaoInicial"></p>
</span>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label class="control-label" for="dataEmissaoFinal">Data Emissão Final</label>
<dx-date-box [min]="minDate" [max]="maxDate" type="date" width="100%" displayFormat="dd/MM/yyyy" formControlName="dataEmissaoFinal" (onValueChanged)="definirValor($event)"></dx-date-box>
<span class="text-danger" *ngIf="displayMessage.dataEmissaoFinal">
<p [innerHTML]="displayMessage.dataEmissaoFinal"></p>
</span>
</div>
</div>
<div class="col-md-3">
<button type="button" style="margin-top: 27px" class="btn btn-block btn-success" (click)="filtrarConciliacao()">
<i class="fa fa-refresh"></i> Filtrar </button>
</div>
</div>
Currently it is like this:
And how it should look?
– Woss
So why don’t you put it inside the div?
– hugocsl
I would like it to look like this: [1]: https://i.stack.Imgur.com/Bebzq.jpg
– Lucas Latorre
See if this was marked on the duplicate. If it’s not I reopen the question. Abs!
– Sam
@hugocsl Can you put all these Ivs inside a fieldset? Because it’s Bootstrap, now I’m in doubt.
– Sam
At least in the doc do Bootstrap appears.
– Sam
by kindness the fieldset is inside or outside the div? Because it didn’t work.
– Lucas Latorre
I put the Divs inside the fieldset and before the first div I put the <Legend>. Still it didn’t work. The legend was out.
– Lucas Latorre
@maverick_ understood its problem, in fact it is that Bootstrap itself "deconstructs" these elements by changing the CSS that would be standard... I left the details in the reply.
– hugocsl
@Sam as he is using Bootstrap 3 has no problem, because the Grid is based on Floats, if it was in Bootstrap 4 could have problems, because Row is a Flex container and Col would need to be a direct child. In this case I tested the responsiveness and even inside the Fieldset works well, in BS4 would probably not work...
– hugocsl