html - Firefox renders Bootstrap 3 `.form-inline` and text inputs wider than Chrome -


this applies bootstrap 3.3.7

i have following markup - full width (.container-fluid) grey background, centered (.container) form:

the inline styles borders debugging purposes, outcome same if removed.

<div class="homepage-signup-insights container-fluid" style="border:1px solid red;">  <div class="container" style="border:1px solid orange;">     <div class="row">         <div class="col-md-12 text-center">              <form class="form-inline">                 <div class="form-group">                     <h3><b>sign newsletter</b></h3>                 </div>                  <div class="form-group">                     <input type="text" class="form-control input-lg" placeholder="name" required>                 </div>                 <div class="form-group">                     <input type="text" class="form-control input-lg" placeholder="company" required>                 </div>                 <div class="form-group">                     <input type="email" class="form-control input-lg" placeholder="email" required>                 </div>                 <button type="submit" class="btn btn-primary btn-lg">send</button>             </form>          </div>     </div> </div> 

on chrome 60.0.3112.113 looks - how want it: enter image description here

in firefox 55.0.3 looks this. can see there more space on left hand side of text "sign newsletter". don't understand why because markup identical , there's no css or browser specific hacks:

enter image description here

does have ideas why is?

the sass applied .homepage-signup-insights follows. removing still gives same bug (except appears without styling of course):

.homepage-signup-insights {     background-color: #dedede;     padding: 20px 0 20px 0;      .form-group {         margin-right: 20px;     }     input[type="text"], input[type="email"] {         border:0;         border-radius: 0;         background-color: #fff;     } } 

the "solution" came apply max-width: 220px css inputs:

input[type="text"], input[type="email"] {     max-width: 220px;     // ... } 

this because noticed using developer toolbar chrome gives inputs (.input-lg) width of 220px, whereas firefox gives them width of 308px. additional width in firefox causes things go on 2 separate lines.

i don't know if has better solution? if give inputs size= attribute, firefox renders them wider chrome. odd, , not i'd expect in bootstrap attempts give cross browser consistency.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -