1

I made a little form for search using Bootstrap 3, and it is perfect on Google Chrome, but the alignment is not very good in Firefox (I am using version 23), the code is:

<form class="col-md-3 input-group pull-right" method="GET"> 
    <input type="text" name="search" id="id_search" class="form-control" maxlength="200">

    <span class="input-group-btn">
        <input type="submit" class="btn btn-default btn-group" name="submit_search" value="Buscar">
    </span>
</form>

You can see it in http://jsfiddle.net/eRpKW/

Is there a simple way to fix it?

staticdev
  • 2,950
  • 8
  • 42
  • 66

1 Answers1

4

Just change your <input type="submit"> to <button type="submit"> (they are fully interchangeable).

So this line:

<input type="submit" class="btn btn-default btn-group" name="submit_search" value="Buscar">

would become

<button type="submit" class="btn btn-default btn-group" name="submit_search">Buscar</button>

Here is an updated demo.

For more details about the cause of the issue, you can read input height differences in Firefox and Chrome.

Community
  • 1
  • 1
edsioufi
  • 8,297
  • 3
  • 36
  • 42