title: How to scale a background image in a modal?
body: <p>I have a modal, and I have a background image in it.  The only thing I need to do is scale it down. However, when I change the "width", it actually changes the modal's width.  I can't come up with a solution.  I have read many other posts here on Stackoverflow as well as other sites (such as css tricks) but I can not find a solution.  Any thoughts will be more than welcome. </p>
  
  <p><a href="https://i.stack.imgur.com/7r7hh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7r7hh.png" alt="This is what it looks like now."></a>
  <a href="https://i.stack.imgur.com/FItYi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FItYi.png" alt="This what it should look like."></a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>/* Login Modal */
  .login-modal-content {
    background-image: url('https://cdn.reebit.cl/images/isotipo.png');
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
    background-position: right 20px bottom 10px;
  }
  
  .login-modal-header {
    border-bottom: 0px;
  }
  
  .login-modal-body {
    width: 100%;
    margin: 0 auto;
  }
  
  .login-modal-body img {
    width: 60%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>// My html seems correct to me //
  &lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"&gt;
  
  
  &lt;div class="modal fade bd-example-modal-lg login-modal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="loginModal"&gt;
    &lt;div class="modal-dialog modal-lg"&gt;
      &lt;div class="modal-content login-modal-content"&gt;
        &lt;div class="modal-header login-modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
                      &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
                      &lt;/button&gt;
        &lt;/div&gt;
        &lt;div class="modal-body modal-body-img login-modal-body text-center col-lg-6 pb-5 pt-0"&gt;
          &lt;img src="https://cdn.reebit.cl/images/header-logo.svg"&gt;
          &lt;h5&gt;¡Hola! Ingresa a tu cuenta&lt;/h5&gt;
          &lt;form class="login-form"&gt;
            &lt;div class="form-group login-modal-form-email"&gt;
              &lt;input type="text" class="form-control" id="formGroupExampleInput" placeholder="Correo electrónico"&gt;
            &lt;/div&gt;
            &lt;div class="form-group login-modal-form-password"&gt;
              &lt;input type="text" class="form-control" id="formGroupExampleInput2" placeholder="Clave"&gt;
            &lt;/div&gt;
            &lt;button type="submit" class="btn btn-block btn-modal-login"&gt;Ingresar&lt;/button&gt;
          &lt;/form&gt;
          &lt;a href="#" class="login-password-forget"&gt;Olvidé mi clave&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>