title: Bootstrap:why intlTelinput changes the width of the input element?
body: <p>I would like to put a number phone input in a subscription form with the validation made by the <code>intlTelInput</code> library, here is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;title&gt;Bootstrap Example&lt;/title&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"&gt;
  
  
    &lt;link rel="stylesheet" type="text/css" href="flags.min.css"&gt;
    &lt;link rel="stylesheet" type="text/css" href="css2.css"&gt;
    &lt;link rel="stylesheet" type="text/css" href="bootstrap-social.css"&gt;
    &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"&gt;
  
    &lt;link rel="stylesheet" href="build/css/intlTelInput.css"&gt;
    &lt;script src="google/jquery-1.11.1.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  
  &lt;/head&gt;
  
  &lt;div class="container"&gt;
  
    &lt;div class="row flex-grow"&gt;
  
  
      &lt;div class="col-xs-offset-1 col-xs-10 col-lg-12 col-lg-offset-0"&gt;
  
  
        &lt;div class="row" id="grad1"&gt;
        &lt;br&gt;
  
            &lt;div class="col-xs-offset-1 col-xs-10 col-lg-offset-4 col-lg-4"&gt;
  
                  &lt;form method="post" action="serv2.php" onsubmit="return submitForm(this);"&gt;
  
                    &lt;fieldset&gt;
  
                      &lt;div class="row"&gt;
  
  
                          &lt;div class="form-group phone"&gt;
  
                              &lt;input type="tel" class="form-control" id="phone" name="phone" placeholder="Phone number" /&gt;
                         &lt;/div&gt;
  
                          &lt;div class="form-group country"&gt;
                              &lt;input type="text" id="country" name="country" class="form-control" placeholder="Country" /&gt;
                          &lt;/div&gt;
  
  
                            &lt;div class="form-group col-lg-6 col-lg-offset-3"&gt;
                              &lt;div&gt;
                                &lt;label for="bouton"&gt;&lt;br&gt;&lt;/label&gt;
                                &lt;div&gt;
                                  &lt;button type="submit" class="btn btn-default" style="background-color: #00B0F0; color:white; width: 100%;border:none;"&gt;Valider&lt;/button&gt;
                                &lt;/div&gt;
                              &lt;/div&gt;
                            &lt;/div&gt;
  
  
                      &lt;/div&gt;
  
                    &lt;/fieldset&gt;
  
                  &lt;/form&gt;
              &lt;/div&gt;
  
        &lt;/div&gt;
  
  
      &lt;/div&gt;
  
    &lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;/html&gt;
  
  &lt;/body&gt;
  
  &lt;script src="build/js/intlTelInput.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  
  
    $("#phone").intlTelInput({
  
      initialCountry: "auto",
      geoIpLookup: function(callback) {
        $.get('https://ipinfo.io', function() {}, "jsonp").always(function(resp) {
          var countryCode = (resp &amp;&amp; resp.country) ? resp.country : "";
          callback(countryCode);
        });
      },
      utilsScript: "build/js/utils.js"
    });
  
  
  
  
    var telInput = $("#phone"),
    errorMsg = $("#error-msg"),
    validMsg = $("#valid-msg");
  
    telInput.intlTelInput({
      utilsScript: "build/js/utils.js"
    });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>The problem is that the phone input does not take the full width of the form like the country does.</p>
  
  <p>I have tried to change it with <code>document.getElementById('phone').style.minWidth = 100%;</code> but it remove the action of the <code>intlTelInput</code> library (i.e no more flag icon).</p>
  
  <p>Any idea ?</p>
  
  <p>Thank you</p>