2
I’m a beginner in HTML/CSS/Bootstrap and I have a question about how to put two checkbox components in some type of container with a title. Am I doing it the right way or is there a better way to do it? My components are like this:
But I’d like them to stay that way:
<div class="panel">
<div class="panel-body container-fluid pt-10 pl-15 pr-15">
<div class="form-horizontal">
<vc:summary />
<div class="form-horizontal">
<div class="col-md-12">
<div class="form-group row">
<div class="col-md-6">
<label asp-for="Descricao" class="control-label">Descrição</label>
<input asp-for="Descricao" class="form-control text-uppercase" />
<span asp-validation-for="Descricao" class="text-danger"></span>
</div>
<label class="control-label">Aplicar a:</label>
<div class="col-md-3">
<div class="float-left mr-20">
<input type="checkbox" class="mycheckbox" data-plugin="switchery"
checked />
</div>
<label class="pt-3" for="inputBasicOn">Pessoa Física</label>
</div>
<div class="col-md-3">
<div class="float-left mr-20">
<input type="checkbox" class="mycheckbox" data-plugin="switchery"
checked />
</div>
<label class="pt-3" for="inputBasicOn">Pessoa Jurídica</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
I know it must be a very simple procedure, but I don’t know how to do it in the best way possible. Someone would know how to help me fix?
A hug to all!
Which version of bootstrap?
– hugocsl
Hi @hugocsl! v3.3.7 :)
– Master JR
Has duplicate id’s:
id="mycheckbox"
– Sam
Ah tah, disregard them... I made changes and removed them... I will update the post. I’m Sorry rssr
– Master JR