1
Sorry for the simplicity of the problem, but I don’t know how to do it properly... I need to align the second label according to the image below where I indicated red. It needs to be indented and aligned with the first top label. Can you do this without having to create CSS classes? Someone knows how to help me?
<div class="col-md-12 elemento-linha">
<input asp-for="@configuracaoCampo.ConfiguracoesCamposViewModel[i].ValorBooleanoViewModel.Valor" data-plugin="switchery" data-size="small" type="checkbox" class="validar-cpf-cnpj" />
<label asp-for="@configuracaoCampo.ConfiguracoesCamposViewModel[i].RotuloCampo" class="control-label">@configuracaoCampo.ConfiguracoesCamposViewModel[i].RotuloCampo</label>
<div>
<label asp-for="@configuracaoCampo.ConfiguracoesCamposViewModel[i].DescricaoCampo" class="control-label">@configuracaoCampo.ConfiguracoesCamposViewModel[i].DescricaoCampo</label>
</div>
</div>
There was a spacing of almost 1 cm between the checkbox and the 'Abels'. It is possible to remove it leaving something between 3 mm or more?
– Master JR
@Masterjr the CSS of Bootstrap 3 is very limited, to do what you want directly with his property you will not get. As you asked for a solution only with BS without using extra css you can’t do much better than this. But if you want to use CSS create a class for example called
d-flex
just like in BS4 and put in itdisplay:flex
. This way you can put d-flex in the Row that will have the elements inside, and remove the class col das div, would be like this http://prntscr.com/opigy1 with a line of CSS you resolve... If you want to edit the answer with this option– hugocsl