How do I put a controller next to each other with bootstrap

Asked

Viewed 1,027 times

0

I have this html with bootstrap. I need to put some textbox next to each other. I used a horizontal control and it didn’t work. In Producer control I put two textbox and it didn’t work.

<form class="form-horizontal">
    <div class="row">
        <div class="col-md-12">
            <div class="form-group">
                <label class="col-sm-2 control-label">Produtor</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control form-white">
                </div>
                <div class="col-sm-4">
                    <input type="text" class="form-control form-white">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">CNPJ</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control form-white">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">Tipo Produtor</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control form-white">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">Filial</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control form-white">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">Data de Inclusão</label>
                <div class="col-sm-2">
                    <input type="text" name="timepicker" class="b-datepicker form-control form-white" placeholder="Informe a data" data-orientation="top">
                </div>
            </div>
        </div>
    </div>
</form>
  • you have two Ivs after the producer label, put "col-Sm-3" and test, if you want you can use the site [ http://www.bootply.com/ ] which is great for this.

  • Visit this page to help you understand these situations better. https://getbootstrap.com/examples/grid/

1 answer

0


  • 1

    @Ivanteles, prefer to put the code and link instead of just the link.

  • I get it, always within the same group. Changed group, she goes to the bottom line.

  • 1

    Can you explain in the answer what this jsFiddle has and what help to the question? So the answer would be even better :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.