align button and input to the right of another button

0

I'm bad at Frontend and would like to make the button  look next to the input and both on the right side of the "New" (float: right) button. Unfortunately I can not.

 <div class="form-group" >
                <form action = "buscarContasPorData.php">
                  <input type="text" name="" class = "form-control" style = "width: 300px">
                  <input type="submit" name="" class = "btn btn-default" value = "Buscar">
                </form>
              </div>

    <a class = "btn btn-primary" href = "novaConta.php">Novo</a>

    
asked by anonymous 08.08.2017 / 20:23

1 answer

0

Good afternoon,

It is best to put the "new" link within .form-group . Try to swap for this HTML:

<div class="form-group" >
  <form action = "buscarContasPorData.php">
    <input type="text" name="" class = "form-control" style = "width: 300px">
    <input type="submit" name="" class = "btn btn-default" value = "Buscar">
    <a class = "btn btn-primary" href = "novaConta.php">Novo</a>
  </form>
</div>

I think it does. o

    
08.08.2017 / 21:11